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
mobile: fix Config checks
ammarahm-ed1b13e055d150
diff --git a/apps/mobile/app/screens/settings/subscription.js b/apps/mobile/app/screens/settings/subscription.jsindex 30ecd25ee..3b4677efa 100644--- a/apps/mobile/app/screens/settings/subscription.js+++ b/apps/mobile/app/screens/settings/subscription.js@@ -51,7 +51,7 @@ export const Subscription = () => {return;}- if (Config.GITHUB_RELEASE) {+ if (Config.GITHUB_RELEASE === "true") {presentSheet({paragraph:"This version of Notesnook app does not support in-app purchases. Kindly login on the Notesnook web app to make the purchase.",@@ -111,7 +111,7 @@ export const Subscription = () => {: user.subscription?.type ===SUBSCRIPTION_STATUS.PREMIUM_CANCELLED &&Platform.OS === "android" &&- !Config.GITHUB_RELEASE+ Config.GITHUB_RELEASE !== "true"? "Resubscribe from Google Playstore": user.subscription?.type === SUBSCRIPTION_STATUS.PREMIUM_EXPIRED? `Resubscribe to Pro (${diff --git a/apps/mobile/app/services/premium.js b/apps/mobile/app/services/premium.jsindex 248be1a9c..69cc9bbfe 100644--- a/apps/mobile/app/services/premium.js+++ b/apps/mobile/app/services/premium.js@@ -61,7 +61,7 @@ async function setPremiumStatus() {} catch (e) {premiumStatus = 0;}- if (Config.GITHUB_RELEASE) return;+ if (Config.GITHUB_RELEASE === "true") return;if (get()) {await subscriptions.clear();