From 5ba8ce549e9ee232aa2eba3513c17256dac5120e Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Fri, 17 Mar 2023 16:58:27 +0500 Subject: [PATCH] mobile: disable update check during tests --- apps/mobile/app/components/launcher/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/mobile/app/components/launcher/index.js b/apps/mobile/app/components/launcher/index.js index 39c4d3270..b7651ce07 100644 --- a/apps/mobile/app/components/launcher/index.js +++ b/apps/mobile/app/components/launcher/index.js @@ -54,7 +54,6 @@ import Config from "react-native-config"; import { getGithubVersion } from "../../utils/github-version"; import notifee from "@notifee/react-native"; - const Launcher = React.memo( function Launcher() { const colors = useThemeStore((state) => state.colors); @@ -151,7 +150,7 @@ const Launcher = React.memo( }, [introCompleted]); const checkAppUpdateAvailable = async () => { - if (__DEV__) return; + if (__DEV__ || Config.isTesting === "true") return; try { const version = Config.GITHUB_RELEASE === "true"