Skip to content

Commit

Permalink
prevent line from re-rendering when closing headcharts
Browse files Browse the repository at this point in the history
  • Loading branch information
mokelgit committed Nov 29, 2024
1 parent 007e699 commit 58d4ee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/layout/Economics/HeadCharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ export default function EconHeadCharts({
if (
!chart ||
!chart.series ||
chart.series.length === 0
chart.series.length === 0 ||
selectedTimespan === "1d"
)
return;

Expand Down

0 comments on commit 58d4ee4

Please sign in to comment.