Skip to content

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

fix: login not working

thecodrr167f982c60d9
diff --git a/apps/web/src/components/dialogs/logindialog.js b/apps/web/src/components/dialogs/logindialog.js
index cccff1cf8..ded8bdf8b 100644
--- a/apps/web/src/components/dialogs/logindialog.js
+++ b/apps/web/src/components/dialogs/logindialog.js
@@ -28,7 +28,7 @@ function LoginDialog(props) {
disabled: isLoggingIn,
onClick: () => {
setError();
- if (!form.error) return;
+ if (form.error) return;
login(form)
.then(onClose)
.catch(e => setError(e.message));