From 3d75207389fadf24af2ca33281af39f413276a52 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 03:56:13 +0000 Subject: [PATCH] completionId: cgen-5802fba3175c469394af3c1863ead0d3 cgen-5802fba3175c469394af3c1863ead0d3 --- client/pages/Dashboard.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index 3620be3a..83480ec6 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -319,13 +319,12 @@ export default function Dashboard() { loadDashboardData(); } else if (user && !profile) { console.log( - "User exists but no profile, redirecting to onboarding", + "User exists but no profile, keeping loading screen visible", ); - // Auto-redirect to onboarding instead of showing a message - navigate("/onboarding", { replace: true }); - setIsLoading(false); + // Keep loading visible while waiting for profile, then onboarding will take over + // Don't set isLoading to false yet } - }, [user, profile, authLoading, navigate]); + }, [user, profile, authLoading]); // Sync local settings form with profile useEffect(() => {