From d0e94523adf820e6c77de1c813b0b91aa6d7db69 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 06:35:41 +0000 Subject: [PATCH] Consider onboarding_complete flag when exposing profileComplete cgen-ce39d5ea04a946e797ff76a0e31ca431 --- client/contexts/AuthContext.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 1a389b94..683254d0 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -264,13 +264,18 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ if (user?.id) await fetchUserProfile(user.id); }; + const computedComplete = + checkProfileComplete(profile) || + (typeof window !== "undefined" && + window.localStorage.getItem("onboarding_complete") === "1"); + const value = { user, profile, roles, session, loading, - profileComplete: checkProfileComplete(profile), + profileComplete: computedComplete, signIn, signUp, signInWithOAuth,