From 65014ec7b0c7eeb76bca66ea7c923774050ac1c5 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 11 Jan 2022 13:14:13 +0100
Subject: chore(widget): add a related thematics widget

---
 src/components/Widget/RelatedTopics/RelatedTopics.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/components/Widget/RelatedTopics/RelatedTopics.tsx')

diff --git a/src/components/Widget/RelatedTopics/RelatedTopics.tsx b/src/components/Widget/RelatedTopics/RelatedTopics.tsx
index ad8f5ef..422c06f 100644
--- a/src/components/Widget/RelatedTopics/RelatedTopics.tsx
+++ b/src/components/Widget/RelatedTopics/RelatedTopics.tsx
@@ -20,7 +20,9 @@ const RelatedTopics = ({ topics }: { topics: SubjectPreview[] }) => {
 
   return (
     <div>
-      <h2 className={styles.title}>{t`Related topics`}</h2>
+      <h2 className={styles.title}>
+        {topics.length > 1 ? t`Related topics` : t`Related topic`}
+      </h2>
       <ul className={styles.list}>{subjects}</ul>
     </div>
   );
-- 
cgit v1.2.3

