diff --git a/components/Thumbnail.js b/components/Thumbnail.tsx similarity index 96% rename from components/Thumbnail.js rename to components/Thumbnail.tsx index 53d02c1c..686b781e 100644 --- a/components/Thumbnail.js +++ b/components/Thumbnail.tsx @@ -23,7 +23,7 @@ function Thumbnail({ article, className }) { switch (article.articleType) { case 'IMAGE': { - const altText = ellipsis(article.text ?? '', { wordCount: 40 }); + const altText = ellipsis(article.text || '', { wordCount: 40 }); return (