From 95b377f9a40cb0372979ae31ba650cda6aea2494 Mon Sep 17 00:00:00 2001 From: Daniel O'Connell Date: Tue, 28 May 2024 18:32:00 +0200 Subject: [PATCH] Filter out empty banners --- app/components/Article/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Article/index.tsx b/app/components/Article/index.tsx index 7ddc29f6..42606a24 100644 --- a/app/components/Article/index.tsx +++ b/app/components/Article/index.tsx @@ -132,7 +132,7 @@ export const Article = ({question, glossary, className}: ArticleProps) => { return (

{title}

- {question.banners?.map(Banner)} + {question.banners?.filter((b) => b.title).map(Banner)}