Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: setImmediate not defined

thecodrr14fc94e210a4
diff --git a/apps/web/src/components/unlock/index.js b/apps/web/src/components/unlock/index.js
index 3c67796dc..ff5a87d0b 100644
--- a/apps/web/src/components/unlock/index.js
+++ b/apps/web/src/components/unlock/index.js
@@ -47,7 +47,7 @@ function Unlock(props) {
useEffect(() => {
clearSession(false);
setIsEditorOpen(true);
- setImmediate(() => setSelectedNote(noteId));
+ setTimeout(() => setSelectedNote(noteId));
}, [clearSession, setIsEditorOpen, setSelectedNote, noteId]);
return (