From 6dab85e1682f37856d3bab901c93eef8f470cf89 Mon Sep 17 00:00:00 2001 From: Alie Date: Thu, 12 Dec 2024 13:01:23 +0100 Subject: [PATCH] show image url as alt --- src/components/ImageModerator/ImageModerator.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ImageModerator/ImageModerator.tsx b/src/components/ImageModerator/ImageModerator.tsx index 26eb337..0c86da7 100644 --- a/src/components/ImageModerator/ImageModerator.tsx +++ b/src/components/ImageModerator/ImageModerator.tsx @@ -65,6 +65,7 @@ export default function ImageModerator({ const url = data.url; const tags = data.tags; setImageData({ url, tags }); + setImageAlt(url); }) .catch((error) => { setImageAlt("Error");