Skip to content

Commit

Permalink
fix: only load video placeholder image if it is defined (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Jun 21, 2023
1 parent 54314d4 commit b3dff30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/video-embed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function VideoEmbedPlaceholder({ imageUrl }) {
top: '0',
width: '100%',
height: '100%',
backgroundImage: `url(${imageUrl})`,
...(imageUrl && { backgroundImage: `url(${imageUrl})` }),
backgroundSize: 'cover',
backgroundPosition: 'center',
cursor: 'pointer',
Expand Down

1 comment on commit b3dff30

@vercel
Copy link

@vercel vercel bot commented on b3dff30 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.