diff --git a/src/components/ArticleRow.tsx b/src/components/ArticleRow.tsx index 3b826b6..3a8b3a1 100644 --- a/src/components/ArticleRow.tsx +++ b/src/components/ArticleRow.tsx @@ -13,7 +13,10 @@ export default function ArticleRow({ let thumbnail: React.ReactElement | null = null; if (article.thumbnail) { thumbnail = ( - {article.title} + {article.title} ); } diff --git a/src/pages/newsArticle.tsx b/src/pages/newsArticle.tsx index 816831a..379a219 100644 --- a/src/pages/newsArticle.tsx +++ b/src/pages/newsArticle.tsx @@ -14,7 +14,7 @@ export default function NewsArticle() { let thumbnailUrl = '/images/hero.png'; if (article?.thumbnail) { - thumbnailUrl = imageUrl(article.thumbnail).url(); + thumbnailUrl = imageUrl(article.thumbnail).url()!; } const goToAllNewsArticles = (