Pluralize warning label

Signed-off-by: Niklas Granander <ngranander@spotify.com>
This commit is contained in:
Niklas Granander
2021-07-05 14:35:53 +02:00
parent 110014318d
commit 0ecddd50ec
@@ -42,7 +42,8 @@ const formatStatus = (status: BuildStatus, warningCount: number) => {
return (
<>
{statusIcons[status]} {status[0].toUpperCase() + status.slice(1)}
{warningCount > 0 && ` with ${warningCount} warnings`}
{warningCount > 0 && ` with ${warningCount} warning`}
{warningCount > 1 && 's'}
</>
);
};