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
fix bug while checking premium status when user is logged out
ammarahm-ed693525e99307
diff --git a/apps/mobile/AppRootEvents.js b/apps/mobile/AppRootEvents.jsindex 273c465c4..20b5e066d 100644--- a/apps/mobile/AppRootEvents.js+++ b/apps/mobile/AppRootEvents.js@@ -267,7 +267,6 @@ export const AppRootEvents = React.memo(};const partialSync = async () => {- if (!useUserStore.getState().user) return;try {setSyncing(true);let res = await doInBackground(async () => {diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.jsindex f05b833c4..6dcc3c6e0 100644--- a/apps/mobile/src/services/PremiumService.js+++ b/apps/mobile/src/services/PremiumService.js@@ -24,7 +24,7 @@ async function setPremiumStatus() {try {user = await db.user.getUser();if (!user) {- premiumStatus = null;+ premiumStatus = 0;userstore.setPremium(get());} else {premiumStatus = user.subscription.type;@@ -32,7 +32,7 @@ async function setPremiumStatus() {userstore.setUser(user);}} catch (e) {- premiumStatus = null;+ premiumStatus = 0;} finally {if (!get()) {await RNIap.initConnection();@@ -111,7 +111,6 @@ const onUserStatusCheck = async type => {eSendEvent(eShowGetPremium, message);}}-return {type, result: status};};