diff --git a/frontend/src/components/pages/CCPMetricsPage.js b/frontend/src/components/pages/CCPMetricsPage.js index f0de15f..2c43374 100644 --- a/frontend/src/components/pages/CCPMetricsPage.js +++ b/frontend/src/components/pages/CCPMetricsPage.js @@ -132,22 +132,22 @@ function MetricBreakdownPanel({ metrics }) { {displayMetrics.map(m => { const pct = m.total > 0 ? (m.compliant / m.total) : 0; const target = Number(m.target || 0); - const color = pct >= target ? '#10B981' : pct >= target * 0.85 ? '#F59E0B' : '#EF4444'; + const pctColor = pct >= target ? '#10B981' : pct >= target * 0.85 ? '#F59E0B' : '#EF4444'; return (
{m.metric_id} - {(pct * 100).toFixed(0)}% + {(pct * 100).toFixed(0)}%
-
{m.non_compliant.toLocaleString()}
+
{m.non_compliant.toLocaleString()}
); })}