mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 23:11:12 -05:00
[dyad] Fixed auth loading state and moderation queue refresh issues - wrote 3 file(s) + extra files edited outside of Dyad
This commit is contained in:
@@ -135,11 +135,7 @@ function AuthProviderComponent({ children }: { children: React.ReactNode }) {
|
||||
if (!user && isMountedRef.current) {
|
||||
setSession(session);
|
||||
setUser(session.user);
|
||||
fetchProfile(session.user.id, 0, () => {
|
||||
if (updateLoadingState && isMountedRef.current) {
|
||||
setLoading(false);
|
||||
}
|
||||
});
|
||||
sessionVerifiedRef.current = true;
|
||||
} else if (updateLoadingState && isMountedRef.current) {
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user