Improve hover title grammar of critical/high severity dashboard benchmark badges. Closes #3300.

This commit is contained in:
Mike Burgess
2023-04-03 23:46:23 +01:00
parent 1a03d4cec6
commit 33cfeacaff

View File

@@ -265,14 +265,18 @@ const CheckPanelSeverity = ({ severity_summary }: CheckPanelSeverityProps) => {
<CheckPanelSeverityBadge
label="Critical"
count={critical}
title={`${critical.toLocaleString()} critical severity results`}
title={`${critical.toLocaleString()} critical severity ${
critical === 1 ? "result" : "results"
}`}
/>
)}
{high !== undefined && (
<CheckPanelSeverityBadge
label="High"
count={high}
title={`${high.toLocaleString()} high severity results`}
title={`${high.toLocaleString()} high severity ${
high === 1 ? "result" : "results"
}`}
/>
)}
</>