diff --git a/composables/auth.ts b/composables/auth.ts index 0ac2e8b..4ec2f32 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -76,6 +76,7 @@ export const useAuth = () => { if (!accessToken.value) return; console.log("fetchuser access token:", accessToken.value); const res = await fetchWithApi("/me") as UserResponse; + res.avatar = res.avatar ?? "https://gorb.b-cdn.net/avatar/default-pfp.png"; user.value = res; return user.value; } diff --git a/public/favicon.ico b/public/favicon.ico index 18993ad..b3d28fa 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/types/interfaces.ts b/types/interfaces.ts index cd4b6dd..a0d7d39 100644 --- a/types/interfaces.ts +++ b/types/interfaces.ts @@ -57,7 +57,7 @@ export interface UserResponse { uuid: string, username: string, display_name: string | null, - avatar: string | null, + avatar: string, pronouns: string | null, email?: string, email_verified?: boolean