Skip to content

Commit c22e63e

Browse files
authored
Fix: Vue type checking for AvatarImage component (#33)
1 parent ac2d172 commit c22e63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/AppHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const rightNavItems: NavItem[] = [
166166
class="relative size-10 w-auto rounded-full p-1 focus-within:ring-2 focus-within:ring-primary"
167167
>
168168
<Avatar class="size-8 overflow-hidden rounded-full">
169-
<AvatarImage :src="auth.user.avatar" :alt="auth.user.name" />
169+
<AvatarImage v-if="auth.user.avatar" :src="auth.user.avatar" :alt="auth.user.name" />
170170
<AvatarFallback class="rounded-lg bg-neutral-200 font-semibold text-black dark:bg-neutral-700 dark:text-white">
171171
{{ getInitials(auth.user?.name) }}
172172
</AvatarFallback>

0 commit comments

Comments
 (0)