From b908db41d1bae3ce5a512e0401ae5442790b6c90 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Mon, 8 Aug 2022 17:34:26 +0100 Subject: [PATCH] Fixed pluralisation for comment count when there is just one --- apps/comments-ui/src/components/CommentsBox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index 88948f3b72..becf4b4944 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -28,6 +28,12 @@ const CommentsBoxTitle = ({title, showCount, count}) => { return null; } + if (count === 1) { + return ( +
1 comment
+ ); + } + return (
{count} comments
);