From b3bf21e0cf6c7f07bad105bb35f8b65c6c9fc28d Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 03:56:04 +0000 Subject: [PATCH] completionId: cgen-c4f91b123ed145d8bd120602ae8059c3 cgen-c4f91b123ed145d8bd120602ae8059c3 --- client/pages/Dashboard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index c1bd59d5..3620be3a 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -319,11 +319,13 @@ export default function Dashboard() { loadDashboardData(); } else if (user && !profile) { console.log( - "User exists but no profile, showing message (not redirecting)", + "User exists but no profile, redirecting to onboarding", ); + // Auto-redirect to onboarding instead of showing a message + navigate("/onboarding", { replace: true }); setIsLoading(false); } - }, [user, profile, authLoading]); + }, [user, profile, authLoading, navigate]); // Sync local settings form with profile useEffect(() => {