Skip to content

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

fix: do not try to sync if user isn't logged in

thecodrrb33d6700ed46
diff --git a/apps/web/src/app-effects.js b/apps/web/src/app-effects.js
index 41e478d57..ee530a88d 100644
--- a/apps/web/src/app-effects.js
+++ b/apps/web/src/app-effects.js
@@ -43,9 +43,10 @@ export default function AppEffects({ setShow }) {
await updateLastSynced();
await resetReminders();
setIsVaultCreated(await db.vault.exists());
- await initUser();
- showUpgradeReminderDialogs();
- await sync();
+ if (await initUser()) {
+ showUpgradeReminderDialogs();
+ await sync();
+ }
})();
},
[