From: stanislavh Date: Thu, 14 Dec 2023 15:32:18 +0000 (+0100) Subject: SONAR-21215 Fix condition statement for issues count in PR overview X-Git-Tag: 10.4.0.87286~311 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0af65960c41e68dc3b426780bc402b5df372a704;p=sonarqube.git SONAR-21215 Fix condition statement for issues count in PR overview --- diff --git a/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx b/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx index 6ab310bb289..347c24e0525 100644 --- a/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx +++ b/server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx @@ -53,10 +53,7 @@ export default function MeasuresCardNumber( { id: 'overview.quality_gate.required_x' }, { operator: condition.op === 'GT' ? '≤' : '≥', - value: formatMeasure(condition.error, MetricType.Percent, { - decimals: 2, - omitExtraDecimalZeros: true, - }), + value: formatMeasure(condition.error, MetricType.Integer), }, );