From 58d4ee43498fe0ebe7c9c9a96e47f50eac2649f6 Mon Sep 17 00:00:00 2001 From: mokelgit Date: Fri, 29 Nov 2024 12:36:35 -0500 Subject: [PATCH] prevent line from re-rendering when closing headcharts --- components/layout/Economics/HeadCharts.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/layout/Economics/HeadCharts.tsx b/components/layout/Economics/HeadCharts.tsx index 0b0e967b..42046db9 100644 --- a/components/layout/Economics/HeadCharts.tsx +++ b/components/layout/Economics/HeadCharts.tsx @@ -844,7 +844,8 @@ export default function EconHeadCharts({ if ( !chart || !chart.series || - chart.series.length === 0 + chart.series.length === 0 || + selectedTimespan === "1d" ) return;