Skip to content

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

web: fix vault not marked as created on login if already exists for user (#9407)

01zulfi1faaf1f6b199
diff --git a/apps/web/src/app-effects.tsx b/apps/web/src/app-effects.tsx
index 2b7bcb015..8638196a3 100644
--- a/apps/web/src/app-effects.tsx
+++ b/apps/web/src/app-effects.tsx
@@ -64,7 +64,6 @@ export default function AppEffects() {
await updateLastSynced();
await initUser();
// await resetNotices();
- setIsVaultCreated(await db.vault.exists());
await FeatureDialog.show({ featureName: "highlights" });
await scheduleBackups();
diff --git a/apps/web/src/stores/app-store.ts b/apps/web/src/stores/app-store.ts
index 68139afd9..e0bcd214b 100644
--- a/apps/web/src/stores/app-store.ts
+++ b/apps/web/src/stores/app-store.ts
@@ -185,6 +185,8 @@ class AppStore extends BaseStore<AppStore> {
await this.refreshNavItems();
+ this.set({ isVaultCreated: await db.vault.exists() });
+
logger.measure("refreshing app");
};