mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 09:51:13 -05:00
Fix: Correct avatar display in header
This commit is contained in:
@@ -73,6 +73,12 @@ function AuthProviderComponent({ children }: { children: React.ReactNode }) {
|
||||
|
||||
// Success - update state and complete
|
||||
if (isMountedRef.current) {
|
||||
authLog('[Auth] Profile loaded:', {
|
||||
userId: data?.user_id,
|
||||
username: data?.username,
|
||||
avatar_url: data?.avatar_url,
|
||||
avatar_image_id: data?.avatar_image_id
|
||||
});
|
||||
setProfile(data as Profile);
|
||||
profileRetryCountRef.current = 0;
|
||||
onComplete?.();
|
||||
|
||||
Reference in New Issue
Block a user