0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed pluralisation for comment count when there is just one

This commit is contained in:
Fabien "egg" O'Carroll 2022-08-08 17:34:26 +01:00 committed by Fabien 'egg' O'Carroll
parent 4b453a8b3a
commit b908db41d1

View file

@ -28,6 +28,12 @@ const CommentsBoxTitle = ({title, showCount, count}) => {
return null;
}
if (count === 1) {
return (
<div className="text-neutral-400 text-[1.6rem]">1 comment</div>
);
}
return (
<div className="text-neutral-400 text-[1.6rem]">{count} comments</div>
);