]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21215 Fix condition statement for issues count in PR overview
authorstanislavh <stanislav.honcharov@sonarsource.com>
Thu, 14 Dec 2023 15:32:18 +0000 (16:32 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 19 Dec 2023 20:02:54 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx

index 6ab310bb289a0ac4fd434cb48caf52dd46d8c3ee..347c24e052507a90725894d0817f4be4e7dd4f42 100644 (file)
@@ -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),
       },
     );