Skip to content

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

mobile: fix inversed check resulting in requests to google servers on app launch in github release.

ammarahm-edc52d5ad176d3
diff --git a/apps/mobile/app/components/launcher/index.js b/apps/mobile/app/components/launcher/index.js
index ee3c1851b..b56401880 100644
--- a/apps/mobile/app/components/launcher/index.js
+++ b/apps/mobile/app/components/launcher/index.js
@@ -152,10 +152,10 @@ const Launcher = React.memo(
}, [introCompleted]);
const checkAppUpdateAvailable = async () => {
- if (__DEV__) return;
+ if (__DEV__) return;
try {
const version =
- Config.GITHUB_RELEASE !== "true"
+ Config.GITHUB_RELEASE === "true"
? await getGithubVersion()
: await checkVersion();
if (!version || !version?.needsUpdate) return false;