mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
fix(ui): remove rounding from Risk Score conversion to preserve decimals
This commit is contained in:
@@ -14,7 +14,7 @@ function convertToRiskScore(overallScore: number | null): number {
|
||||
if (overallScore === null) return 0;
|
||||
// ThreatScore is 0-100, we need 0-10
|
||||
// Higher = better in both scales
|
||||
return Math.round((overallScore / 10) * 10) / 10;
|
||||
return overallScore / 10;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user