Skip to content

Commit e704cc8

Browse files
committed
Fix: Vue type checking for AvatarImage component
1 parent 254fc9c commit e704cc8

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
@@ -165,7 +165,7 @@ const rightNavItems: NavItem[] = [
165165
class="relative size-10 w-auto rounded-full p-1 focus-within:ring-2 focus-within:ring-primary"
166166
>
167167
<Avatar class="size-8 overflow-hidden rounded-full">
168-
<AvatarImage :src="auth.user.avatar" :alt="auth.user.name" />
168+
<AvatarImage v-if="auth.user.avatar" :src="auth.user.avatar" :alt="auth.user.name" />
169169
<AvatarFallback class="rounded-lg bg-neutral-200 font-semibold text-black dark:bg-neutral-700 dark:text-white">
170170
{{ getInitials(auth.user?.name) }}
171171
</AvatarFallback>

0 commit comments

Comments
 (0)