From e8b5b119d9214846544d9907df2dbdabefb0b15d Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 20:29:22 +0000 Subject: [PATCH] Force routing to onboarding after sign-in and OAuth cgen-340a88b341a541ada5c84609bbd76330 --- client/pages/Login.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index 4d3479db..3c854bfe 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -39,13 +39,9 @@ export default function Login() { // Redirect if already logged in useEffect(() => { if (user && !loading) { - if (profile) { - navigate("/dashboard", { replace: true }); - } else { - navigate("/onboarding", { replace: true }); - } + navigate("/onboarding", { replace: true }); } - }, [user, profile, loading, navigate]); + }, [user, loading, navigate]); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); @@ -279,7 +275,7 @@ export default function Login() { } > - {isSignUp ? "Create Account" : "Sign In to Dashboard"} + {isSignUp ? "Create Account" : "Sign In"}