feat: Implement conversion rate as (Completed Orders / Total Orders) × 100 and fix Recharts prop warning
This commit is contained in:
@@ -511,8 +511,8 @@ export default function Dashboard() {
|
||||
>
|
||||
<Pie
|
||||
data={sortedOrderStatus}
|
||||
dataKey={(entry) => entry.count || entry.value || 0}
|
||||
nameKey={(entry) => entry.status || entry.name || 'Unknown'}
|
||||
dataKey="count"
|
||||
nameKey="status"
|
||||
cx="50%"
|
||||
cy="50%"
|
||||
innerRadius={70}
|
||||
|
||||
Reference in New Issue
Block a user