diff --git a/src/App.jsx b/src/App.jsx index e5128cd..3b8102c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -30,6 +30,7 @@ const App = () => { }, [fetchUserInfo]); const handleTabClose = (event) => { + event.preventDefault(); // Check if the tab is being refreshed if (!isTabRefreshed.current) { signOut(auth); // Logout only if the tab is closing, not refreshing