aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-12-14 16:32:18 +0100
committersonartech <sonartech@sonarsource.com>2023-12-19 20:02:54 +0000
commit0af65960c41e68dc3b426780bc402b5df372a704 (patch)
tree530c41ef0fb81f47ca58cd676fc8b3ae3e88c0d6 /server/sonar-web
parent6c2e24cdf98f3f64540486b6028e43d4f3deef88 (diff)
downloadsonarqube-0af65960c41e68dc3b426780bc402b5df372a704.tar.gz
sonarqube-0af65960c41e68dc3b426780bc402b5df372a704.zip
SONAR-21215 Fix condition statement for issues count in PR overview
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/pullRequests/MeasuresCardNumber.tsx5
1 files changed, 1 insertions, 4 deletions
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),
},
);