mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
fix(ui): show raw Risk Score percentage without rounding
This commit is contained in:
@@ -109,7 +109,7 @@ const CustomTooltip = ({ active, payload }: TooltipProps) => {
|
||||
const data = payload[0].payload;
|
||||
const riskColor = getRiskScoreColor(data.x);
|
||||
// Convert Risk Score (0-10) to percentage (0-100) for display
|
||||
const riskScorePercentage = Math.round(data.x * 10);
|
||||
const riskScorePercentage = data.x * 10;
|
||||
|
||||
return (
|
||||
<div className="border-border-neutral-tertiary bg-bg-neutral-tertiary pointer-events-none min-w-[200px] rounded-xl border p-3 shadow-lg">
|
||||
|
||||
Reference in New Issue
Block a user