diff --git a/src/components/dashboard/chart-card.tsx b/src/components/dashboard/chart-card.tsx index db4c1f4..3f2ce50 100644 --- a/src/components/dashboard/chart-card.tsx +++ b/src/components/dashboard/chart-card.tsx @@ -163,7 +163,7 @@ export function ChartCard({ cx="50%" cy="50%" labelLine={false} - label={({ name, percent }) => `${name} (${(percent * 100).toFixed(0)}%)`} + label={({ name, percent }) => `${name} (${((percent || 0) * 100).toFixed(0)}%)`} outerRadius={100} fill="#8884d8" dataKey={dataKey}