Skip to content

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

fix: crash in email verification dialog

thecodrr3f3c946cccbd
diff --git a/apps/web/src/components/dialogs/email-verification-dialog.js b/apps/web/src/components/dialogs/email-verification-dialog.js
index 02f3060a4..886b7423a 100644
--- a/apps/web/src/components/dialogs/email-verification-dialog.js
+++ b/apps/web/src/components/dialogs/email-verification-dialog.js
@@ -12,7 +12,7 @@ function EmailVerificationDialog(props) {
const [canSendAgain, setCanSendAgain] = useState(true);
if (!user) {
props.onCancel();
- return;
+ return null;
}
return (
<Dialog