A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
remove unneeded checks
ammarahm-ed0575e24912a0
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.jsindex 4f15d7809..4bdf049e7 100644--- a/apps/mobile/src/components/LoginDialog/index.js+++ b/apps/mobile/src/components/LoginDialog/index.js@@ -175,9 +175,6 @@ const LoginDialog = () => {setStatus('Logging in');let user;try {- if (!db.user) {- throw new Error('Database is not initialized!');- }console.log('LOGGING IN');await db.user.login(email.toLowerCase(), password, true);console.log('LOGGED IN');@@ -242,9 +239,6 @@ const LoginDialog = () => {setLoading(true);setStatus('Creating Account');try {- if (!db.user) {- throw new Error('Database is not initialized!');- }await db.user.signup(email, password);let user = await db.user.getUser();setStatus('Setting Crenditials');