From 191460bf711515d36d73819c5dfc3c1db4ec2eb7 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 20:57:27 +0000 Subject: [PATCH] Simplify post-login navigation to avoid being blocked by profile fetch cgen-ead2d99e015d4fc590cedb48e8b056ad --- client/pages/Login.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index bb9cd12f..cb6e4f9a 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -62,12 +62,8 @@ export default function Login() { setIsSignUp(false); } else { await signIn(email, password); - const current = await aethexUserService.getCurrentUser(); - if (current) { - navigate("/dashboard", { replace: true }); - } else { - navigate("/onboarding", { replace: true }); - } + // Navigate immediately; Dashboard will handle profile/onboarding state + navigate("/dashboard", { replace: true }); } } catch (error: any) { console.error("Authentication error:", error);