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 d75aee4 commit 6135de6Copy full SHA for 6135de6
src/pages/News/NewsPage.tsx
@@ -499,8 +499,11 @@ const NewsPage: React.FC = () => {
499
>
500
{post.image ? (
501
<picture>
502
- {post.image.endsWith(".png") && (
503
- <source srcSet={post.image.replace(/\.png$/, ".webp")} type="image/webp" />
+ {post.image.endsWith('.png') && (
+ <source
504
+ srcSet={post.image.replace(/\.png$/, '.webp')}
505
+ type="image/webp"
506
+ />
507
)}
508
<img
509
src={post.image}
0 commit comments