Skip to content

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

web: fix vault settings not updating on deleting vault

Abdullah Atta9f241959cfa7
diff --git a/apps/web/src/common/vault.ts b/apps/web/src/common/vault.ts
index 730dfabb6..5dff64c9b 100644
--- a/apps/web/src/common/vault.ts
+++ b/apps/web/src/common/vault.ts
@@ -76,7 +76,9 @@ class Vault {
});
if (result) {
await db.vault.delete(result.deleteAllLockedNotes);
+ return true;
}
+ return false;
}
static unlockVault() {