diff --git a/src/components/dashboard/CategoryPieChart.tsx b/src/components/dashboard/CategoryPieChart.tsx index 1d82cf4..773ccd5 100644 --- a/src/components/dashboard/CategoryPieChart.tsx +++ b/src/components/dashboard/CategoryPieChart.tsx @@ -117,15 +117,14 @@ export default function CategoryPieChart({ -
+
{data.map((item, index) => { const isHidden = hiddenCategories.has(item.category_name); + const pct = total > 0 && !isHidden ? Math.round((item.total / total) * 100) : null; return ( );