Pluralize warning label
Signed-off-by: Niklas Granander <ngranander@spotify.com>
This commit is contained in:
@@ -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'}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user