chore(Avatar): cast ImageComponent to string

This commit is contained in:
Benjamin Canac
2025-01-27 13:02:56 +01:00
parent f3958773d6
commit d27be06164

View File

@@ -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
}