From d27be061649049255e08e8edb141209a1a64ef38 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 27 Jan 2025 13:02:56 +0100 Subject: [PATCH] chore(Avatar): cast `ImageComponent` to string --- src/runtime/components/Avatar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/Avatar.vue b/src/runtime/components/Avatar.vue index 5175d74ca3..b35310e7b6 100644 --- a/src/runtime/components/Avatar.vue +++ b/src/runtime/components/Avatar.vue @@ -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 }