Fix mobile account session selection

This commit is contained in:
2026-06-29 22:01:41 -04:00
parent 9498a09b5b
commit b7eef743bd
9 changed files with 286 additions and 27 deletions
+2 -1
View File
@@ -103,12 +103,13 @@ export default function RootLayout() {
function RootNavigator() {
const { data: session, isPending } = useSession();
const { activeAccountId } = useAccounts();
if (isPending) {
return <LoadingScreen message="Checking session…" />;
}
const isAuthenticated = Boolean(session?.user);
const isAuthenticated = Boolean(session?.user && activeAccountId);
return (
<Stack