Guarantee loading is false - add catch-all timeout
cgen-dd485462dbf14ff18179816ae9b214e8
This commit is contained in:
parent
ed1318b249
commit
0f927576e4
1 changed files with 5 additions and 1 deletions
|
|
@ -873,8 +873,12 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
|||
});
|
||||
}
|
||||
|
||||
// Ensure loading is always false after sign-out completes
|
||||
// CRITICAL: Guarantee loading is false so buttons appear
|
||||
// Use synchronous call first, then timeout to catch any edge cases
|
||||
setLoading(false);
|
||||
setTimeout(() => {
|
||||
setLoading(false);
|
||||
}, 100);
|
||||
};
|
||||
|
||||
const updateProfile = async (updates: Partial<AethexUserProfile>) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue