From a8a517b3181e40cd8b263f22556418d58c1b2ab0 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 6 Nov 2025 01:48:43 +0000 Subject: [PATCH] completionId: cgen-a54fc9f4577c45e790650e73edb48ffb cgen-a54fc9f4577c45e790650e73edb48ffb --- client/pages/Dashboard.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 (