diff --git a/app/_layout.tsx b/app/_layout.tsx index 4309bd0..a5e1bc2 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -27,7 +27,6 @@ export default function RootLayout() { const [userRole, setUserRole] = useState(null); useEffect(() => { - /* const unsubscribe = onAuthStateChanged(auth, async (currentUser) => { if (!currentUser) { router.replace("/login/login"); @@ -58,14 +57,7 @@ export default function RootLayout() { router.replace("/login/login"); } }); - - return unsubscribe; - */ - const timeout = setTimeout(() => { - router.replace("/(tabs)"); - }, 0); - - return () => clearTimeout(timeout); + return unsubscribe; }, []); return (