Skip to content

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

do not show email verfied dialog if user loggedout

ammarahm-ed668f77caa9c4
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index e7c3515dd..491cf1a38 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -216,6 +216,7 @@ const App = () => {
const onEmailVerified = async () => {
let user = await db.user.fetchUser();
dispatch({type: Actions.USER, user: user});
+ if (!user) return;
let message =
user?.subscription?.type === 2
? 'Thank you for signing up for Notesnook Beta Program. Enjoy all premium features for free for the next 3 months.'