File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ const ImageBlurPreloader: FC<Props> = ({
54
54
height : mainAttributes . height ,
55
55
} ;
56
56
57
+ const blurAlt = ! isLoadingBlur ? blurAttributes . alt : '' ;
58
+ const mainAlt = ! isLoadingMain ? mainAttributes . alt : '' ;
59
+
57
60
const hasImage = Boolean (
58
61
isLoadingMain
59
62
? mainAttributes . src || mainAttributes . srcSet
@@ -68,7 +71,7 @@ const ImageBlurPreloader: FC<Props> = ({
68
71
< img
69
72
{ ...blurAttributes }
70
73
{ ...commonAttributes }
71
- alt = { ! isLoadingBlur ? blurAttributes . alt : '' }
74
+ alt = { blurAlt }
72
75
onLoad = { ( ) => setIsLoadingBlur ( false ) }
73
76
className = { cn ( 'object-cover absolute top-0 left-0 size-full' , className ) }
74
77
/>
@@ -77,7 +80,7 @@ const ImageBlurPreloader: FC<Props> = ({
77
80
< img
78
81
{ ...mainAttributes }
79
82
{ ...commonAttributes }
80
- alt = { ! isLoadingMain ? mainAttributes . alt : '' }
83
+ alt = { mainAlt }
81
84
onLoad = { handleLoadMain }
82
85
className = { cn (
83
86
'object-cover absolute top-0 left-0 size-full' ,
You can’t perform that action at this time.
0 commit comments