Skip to content

Commit f3a60ca

Browse files
committed
text: remove timer if isE2E
1 parent c77dd1a commit f3a60ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/Nav/Main/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ import {
9595
import { useNetworkSelection } from '../../hooks/useNetworkSelection/useNetworkSelection';
9696
import { useIsOnBridgeRoute } from '../../UI/Bridge/hooks/useIsOnBridgeRoute';
9797
import { CardVerification } from '../../UI/Card/sdk';
98+
import { isE2E } from '../../../util/test/utils';
9899

99100
const Stack = createStackNavigator();
100101

@@ -190,7 +191,7 @@ const Main = (props) => {
190191

191192
// If the app is now in background, we need to start
192193
// the background timer, which is less intense
193-
if (backgroundMode.current) {
194+
if (backgroundMode.current && !isE2E) {
194195
removeNotVisibleNotifications();
195196

196197
BackgroundTimer.runBackgroundTimer(async () => {

0 commit comments

Comments
 (0)