Skip to content

Commit

Permalink
chore(Avatar): cast ImageComponent to string
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 27, 2025
1 parent f395877 commit d27be06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const sizePx = computed(() => ({
// Reproduces Reka UI's [AvatarImage](https://reka-ui.com/docs/components/avatar#image) component behavior which cannot be used with NuxtImg component
onMounted(() => {
if (!props.src || ImageComponent !== 'img') {
if (!props.src || (ImageComponent as unknown as string) !== 'img') {
return
}
Expand Down

0 comments on commit d27be06

Please sign in to comment.