fix: setImmediate not defined

This commit is contained in:
thecodrr
2022-07-26 23:15:11 +05:00
parent 5cd76fe142
commit 14fc94e210

View File

@@ -47,7 +47,7 @@ function Unlock(props) {
useEffect(() => {
clearSession(false);
setIsEditorOpen(true);
setImmediate(() => setSelectedNote(noteId));
setTimeout(() => setSelectedNote(noteId));
}, [clearSession, setIsEditorOpen, setSelectedNote, noteId]);
return (