From e0f26748112d46eff692761e403899408d87498a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Wed, 6 Sep 2023 14:28:41 +0200 Subject: [PATCH] fix pr --- front/views/PlayView.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/views/PlayView.tsx b/front/views/PlayView.tsx index 2e9c0d6..2648052 100644 --- a/front/views/PlayView.tsx +++ b/front/views/PlayView.tsx @@ -165,7 +165,6 @@ const PlayView = ({ songId, type, route }: RouteProps) => { if (data.type == 'end') { endMsgReceived = true; webSocket.current?.close(); - console.log('End message received stack action'); navigation.dispatch( StackActions.replace('Score', { songId: song.data!.id, ...data }) ); @@ -238,7 +237,7 @@ const PlayView = ({ songId, type, route }: RouteProps) => { ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE).catch(() => {}); const interval = setInterval(() => { setTime(() => getElapsedTime()); // Countdown - }, 10); + }, 1); return () => { ScreenOrientation.unlockAsync().catch(() => {});