Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Jan 24, 2025
1 parent 7f76e32 commit 670c2b6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ const ListingImage = ({
}) => {
const Image = config.getComponent({ name: 'Image' }).component;

//Verifies if the item has a preview image or an header image
const showTitleAttr = !!(
(item.hasPreviewImage && item.preview_caption) ||
(item.image_field && item.image_caption)
);

//Verifies with caption to show as alt and title text
const imageCaption =
item.hasPreviewImage && item.preview_caption
? item.preview_caption
Expand Down

0 comments on commit 670c2b6

Please sign in to comment.