Skip to content

Commit

Permalink
fixed chart updating on monthly, daily, changing
Browse files Browse the repository at this point in the history
  • Loading branch information
mokelgit committed Sep 11, 2024
1 parent ec46c8e commit 4bcdbc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/layout/Economics/BreakdownCharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ function BreakdownCharts({
return dailyData.revenue.data[dailyData.revenue.data.length - 1][0];
}, [selectedTimespan, dailyData]);

console.log(dailyData);

const tooltipFormatter = useCallback(
function (this: any) {
const { x, points } = this;
Expand Down Expand Up @@ -430,7 +432,7 @@ function BreakdownCharts({

return tooltip + tooltipPoints + sumRow + tooltipEnd;
},
[valuePrefix, reversePerformer],
[valuePrefix, reversePerformer, dailyData, isMonthly],
);

const tooltipManager = useMemo(() => {
Expand Down

0 comments on commit 4bcdbc5

Please sign in to comment.