From f3a60cac3e555f0dd0c70fe04d8c7b8fe1b86c73 Mon Sep 17 00:00:00 2001 From: Racitores Date: Thu, 18 Dec 2025 15:55:44 +0100 Subject: [PATCH 1/2] text: remove timer if isE2E --- app/components/Nav/Main/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/Nav/Main/index.js b/app/components/Nav/Main/index.js index 98384824f71b..d520c286340b 100644 --- a/app/components/Nav/Main/index.js +++ b/app/components/Nav/Main/index.js @@ -95,6 +95,7 @@ import { import { useNetworkSelection } from '../../hooks/useNetworkSelection/useNetworkSelection'; import { useIsOnBridgeRoute } from '../../UI/Bridge/hooks/useIsOnBridgeRoute'; import { CardVerification } from '../../UI/Card/sdk'; +import { isE2E } from '../../../util/test/utils'; const Stack = createStackNavigator(); @@ -190,7 +191,7 @@ const Main = (props) => { // If the app is now in background, we need to start // the background timer, which is less intense - if (backgroundMode.current) { + if (backgroundMode.current && !isE2E) { removeNotVisibleNotifications(); BackgroundTimer.runBackgroundTimer(async () => { From 55229b8d707fbc2fc7ef33aa46c38feb59c864f1 Mon Sep 17 00:00:00 2001 From: Racitores Date: Fri, 19 Dec 2025 12:42:53 +0100 Subject: [PATCH 2/2] fix: remove timer if isE2E --- app/components/Nav/Main/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/components/Nav/Main/index.js b/app/components/Nav/Main/index.js index d520c286340b..514cac8bb44f 100644 --- a/app/components/Nav/Main/index.js +++ b/app/components/Nav/Main/index.js @@ -191,12 +191,14 @@ const Main = (props) => { // If the app is now in background, we need to start // the background timer, which is less intense - if (backgroundMode.current && !isE2E) { + if (backgroundMode.current) { removeNotVisibleNotifications(); - BackgroundTimer.runBackgroundTimer(async () => { - await updateIncomingTransactions(); - }, AppConstants.TX_CHECK_BACKGROUND_FREQUENCY); + if (!isE2E) { + BackgroundTimer.runBackgroundTimer(async () => { + await updateIncomingTransactions(); + }, AppConstants.TX_CHECK_BACKGROUND_FREQUENCY); + } } }, [backgroundMode, removeNotVisibleNotifications],