Ensure loading is false and stays false after sign-out completes

cgen-5a94fd0f27fa4864961560b9c816bd34
This commit is contained in:
Builder.io 2025-11-08 09:18:57 +00:00
parent c5cff03c57
commit ed1318b249

View file

@ -872,6 +872,9 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
description: "You have been signed out successfully.",
});
}
// Ensure loading is always false after sign-out completes
setLoading(false);
};
const updateProfile = async (updates: Partial<AethexUserProfile>) => {