diff --git a/frontend/src/components/CardDetailsPage.tsx b/frontend/src/components/CardDetailsPage.tsx index e7d54beded..d62266fc2e 100644 --- a/frontend/src/components/CardDetailsPage.tsx +++ b/frontend/src/components/CardDetailsPage.tsx @@ -3,6 +3,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { DetailsCardProps } from 'types/card' import { capitalize } from 'utils/capitalize' import { formatDate } from 'utils/dateFormatter' +import { pluralize } from 'utils/pluralize' import { getSocialIcon } from 'utils/urlIconMappings' import ChapterMap from 'components/ChapterMap' import InfoBlock from 'components/InfoBlock' @@ -88,7 +89,7 @@ const DetailsCard = ({ )} {(type === 'project' || type === 'repository') && ( - <> +
- {item.commentsCount} comments + + {item.commentsCount} {pluralize(item.commentsCount, 'comment')} + ) : null}
@@ -117,7 +120,7 @@ const DetailsCard = ({ )} /> - + )} {type === 'project' && repositories.length > 0 && (