Skip to content

Commit

Permalink
revert media trail change
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Dec 18, 2024
1 parent 5fb1971 commit ef70ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotcom-rendering/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const getMedia = ({
return {
type: 'podcast',
podcastImage,
...(imageUrl && { imageUrl }),
trailImage: { src: imageUrl, altText: imageAltText },
} as const;
}
if (imageUrl) {
Expand Down Expand Up @@ -863,9 +863,9 @@ export const Card = ({
</div>
) : (
<CardPicture
mainImage={media.imageUrl ?? ''}
mainImage={media.trailImage.src ?? ''}
imageSize={imageSize}
alt={media.imageAltText}
alt={media.trailImage.altText}
loading={imageLoading}
aspectRatio={aspectRatio}
/>
Expand Down

0 comments on commit ef70ff8

Please sign in to comment.