Skip to content

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

do not open editor if note is null

ammarahm-ed7580bd8df8c1
diff --git a/apps/mobile/src/components/AppLoader/index.js b/apps/mobile/src/components/AppLoader/index.js
index ad9bdb3e8..e0c79e90e 100644
--- a/apps/mobile/src/components/AppLoader/index.js
+++ b/apps/mobile/src/components/AppLoader/index.js
@@ -37,7 +37,8 @@ const AppLoader = ({onLoad}) => {
let appState = await MMKV.getItem('appState');
if (appState) {
appState = JSON.parse(appState);
- if (!appState.movedAway && Date.now() < appState.timestamp + 3600000) {
+ if (appState.note && !appState.movedAway && Date.now() < appState.timestamp + 3600000) {
+
editing.isRestoringState = true;
//setNoteOnly(appState.note);
editing.currentlyEditing = true;