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"}