Ensure loading is false and stays false after sign-out completes
cgen-5a94fd0f27fa4864961560b9c816bd34
This commit is contained in:
parent
c5cff03c57
commit
ed1318b249
1 changed files with 3 additions and 0 deletions
|
|
@ -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>) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue