From 2a5f4e85d9f23c9dcff34af393af15a34ff82940 Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 12 Mar 2025 23:26:13 +0530 Subject: [PATCH] feat: destructure url and user id --- src/components/browser/BrowserNavBar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/browser/BrowserNavBar.tsx b/src/components/browser/BrowserNavBar.tsx index 72456931..64759d62 100644 --- a/src/components/browser/BrowserNavBar.tsx +++ b/src/components/browser/BrowserNavBar.tsx @@ -51,10 +51,10 @@ const BrowserNavBar: FC = ({ socket?.emit('input:url', address); }, [socket]); - const handleCurrentUrlChange = useCallback((url: string) => { - handleUrlChanged(url); - setRecordingUrl(url); - window.sessionStorage.setItem('recordingUrl', url); + const handleCurrentUrlChange = useCallback((data: { url: string, userId: string }) => { + handleUrlChanged(data.url); + setRecordingUrl(data.url); + window.sessionStorage.setItem('recordingUrl', data.url); }, [handleUrlChanged, recordingUrl]); useEffect(() => {