diff --git a/app/javascript/v3/components/Form/ProfileAvatar.vue b/app/javascript/v3/components/Form/ProfileAvatar.vue index af5e3c351..fe60ad0e8 100644 --- a/app/javascript/v3/components/Form/ProfileAvatar.vue +++ b/app/javascript/v3/components/Form/ProfileAvatar.vue @@ -7,6 +7,7 @@ { - if (!props.src) { - return false; - } - if (hasImageLoaded.value) { - return !imageLoadedError.value; - } - return true; -}); +const shouldShowImage = computed(() => props.src && !imageLoadedError.value); const onImageLoadError = () => { imageLoadedError.value = true;