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:
parent
4b453a8b3a
commit
b908db41d1
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue