Skip to content

Commit

Permalink
fix 1 streetcode cards bug (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adeodonne authored Dec 7, 2023
1 parent 9e29188 commit 2ef728b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
}
className="streetcodeImgColored"
style={{ objectFit: 'contain' }}
alt={images[0].imageDetails?.alt}
alt={imagesForSlider[0].imageDetails?.alt}
/>
<img
key={imagesForSlider[1].id}
Expand All @@ -136,22 +136,22 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
)}
className="streetcodeImgGrey"
style={{ objectFit: 'contain' }}
alt={imagesForSlider[index].imageDetails?.alt}
alt={imagesForSlider[1].imageDetails?.alt}
/>
</div>
);
}

return (
<img
key={images[index].id}
key={imagesForSlider[index].id}
src={base64ToUrl(
images[index].base64,
images[index].mimeType,
imagesForSlider[index].base64,
imagesForSlider[index].mimeType,
)}
className="streetcodeImg"
style={{ objectFit: 'contain' }}
alt={images[index].imageDetails?.alt}
alt={imagesForSlider[index].imageDetails?.alt}
/>
);
})}
Expand Down

0 comments on commit 2ef728b

Please sign in to comment.