From 725492bff2e310186ba2432fe05b3c9a248c0e60 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Thu, 6 Nov 2025 01:28:52 +0530 Subject: [PATCH] fix: remove isRecording condition --- src/pages/PageWrapper.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pages/PageWrapper.tsx b/src/pages/PageWrapper.tsx index 1af53681..07ef8cfb 100644 --- a/src/pages/PageWrapper.tsx +++ b/src/pages/PageWrapper.tsx @@ -55,7 +55,7 @@ export const PageWrapper = () => { const sessionParam = urlParams.get('session'); const storedSessionId = getTabState('recordingSessionId'); const storedRecordingUrl = getTabState('recordingUrl'); - + if (location.pathname === '/recording-setup' && sessionParam && sessionParam === storedSessionId) { setBrowserId('new-recording'); setRecordingName(''); @@ -67,14 +67,14 @@ export const PageWrapper = () => { navigate('/recording'); } - else if (location.pathname === '/recording' || - (getTabState('nextTabIsRecording') === 'true' && sessionParam === storedSessionId)) { + else if (location.pathname === '/recording' || + (getTabState('nextTabIsRecording') === 'true' && sessionParam === storedSessionId)) { setIsRecordingMode(true); - + if (location.pathname !== '/recording') { navigate('/recording'); } - + window.sessionStorage.removeItem('nextTabIsRecording'); } else if (tabMode === 'main') { console.log('Tab is in main application mode'); @@ -88,7 +88,7 @@ export const PageWrapper = () => { const isAuthPage = location.pathname === '/login' || location.pathname === '/register'; const isRecordingPage = location.pathname === '/recording'; - + return (
@@ -96,18 +96,18 @@ export const PageWrapper = () => { {/* Show NavBar only for main app pages, not for recording pages */} {!isRecordingPage && ( - )} - }>