diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index a6f23f40..744510e0 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -646,6 +646,11 @@ export default function Dashboard() { ((profile as any)?.user_type as RealmKey) || "community_member") as RealmKey; + // Show loading screen while auth is resolving or if user is not authenticated + if (authLoading || !user) { + return ; + } + return (