We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f933b commit 2940078Copy full SHA for 2940078
src/components/Image/Image.tsx
@@ -69,7 +69,7 @@ const Image = (props: ImageProps) => {
69
<source srcSet={tablet} media={`(max-width: ${BREAKPOINTS.md}px)`} />
70
</Fragment>
71
)}
72
- {desktop && !disableWebp && <source srcSet={checkWebP(imageSrc)} type="image/webp" />}
+ {imageSrc && !disableWebp && <source srcSet={checkWebP(imageSrc)} type="image/webp" />}
73
<img
74
className={className}
75
src={imageSrc}
0 commit comments