diff --git a/src/components/CandleChart.tsx b/src/components/CandleChart.tsx index e8759f8..d3605f5 100644 --- a/src/components/CandleChart.tsx +++ b/src/components/CandleChart.tsx @@ -233,7 +233,7 @@ const CandleChart = forwardRef( if (typeof from !== 'number' || typeof to !== 'number') return candles; return candles.filter((c) => c.time >= from && c.time <= to); }, - })); + }), [candles]); // Get theme-specific colors const getChartColors = () => {