diff --git a/app/features/art/components/ArtGrid.tsx b/app/features/art/components/ArtGrid.tsx index 98d0435f2..dd697042a 100644 --- a/app/features/art/components/ArtGrid.tsx +++ b/app/features/art/components/ArtGrid.tsx @@ -89,7 +89,7 @@ export function ArtGrid({ } function BigImageDialog({ close, art }: { close: () => void; art: ListedArt }) { - const [imageLoaded, setImageLoaded] = React.useState(false); + const [imageSettled, setImageSettled] = React.useState(false); const { formatter } = useDateTimeFormat({ year: "numeric", month: "numeric", @@ -107,11 +107,12 @@ function BigImageDialog({ close, art }: { close: () => void; art: ListedArt }) { src={art.url} loading="lazy" className={styles.dialogImg} - onLoad={() => setImageLoaded(true)} + onLoad={() => setImageSettled(true)} + onError={() => setImageSettled(true)} /> {art.tags || art.linkedUsers ? (