Skip to content

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

fix: do not open verify account dialog if user isn't logged in

thecodrr4c12c019ff23
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js
index 59a4e2251..f7c28b66a 100644
--- a/apps/web/src/common/index.js
+++ b/apps/web/src/common/index.js
@@ -129,7 +129,8 @@ export function getTotalNotes(notebook) {
}, 0);
}
-export function verifyAccount() {
+export async function verifyAccount() {
+ if (!(await db.user.getUser())) return true;
return showPasswordDialog("verify_account", ({ password }) => {
return db.user.verifyPassword(password);
});