Fix: Correct avatar display in header

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 13:53:15 +00:00
parent 0c7b898917
commit 233e8efd62
3 changed files with 16 additions and 3 deletions

View File

@@ -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?.();