Skip to content

Commit

Permalink
Update ProductOverview.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Feb 6, 2025
1 parent 67cac45 commit f6b6fe8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const ProductOverview = ({
metric={metrics?.orders}
value={periods?.reduce((acc, current) => acc + current.orders, 0)}
/>
<MiniMetricChartBox title="Today's Revenue" metric={metrics?.revenue} />
<MiniMetricChartBox title="Today's Revenue" metric={metrics?.revenue} value={periods?.[periods.length - 1].revenue} />
<MiniMetricChartBox
metric={metrics?.cumulative_revenue}
value={periods?.[periods.length - 1].cumulative_revenue}
Expand Down

0 comments on commit f6b6fe8

Please sign in to comment.