mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(Avatar): cast ImageComponent to string
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user