mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count === 1) {
|
||||||
|
return (
|
||||||
|
<div className="text-neutral-400 text-[1.6rem]">1 comment</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-neutral-400 text-[1.6rem]">{count} comments</div>
|
<div className="text-neutral-400 text-[1.6rem]">{count} comments</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue