From b48e71e5be893890e41ed0594950b763201dccae Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Tue, 22 Aug 2023 11:46:11 +0200 Subject: [PATCH] Fix 1D chart Closes #788 --- src/components/HistoricWorthChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HistoricWorthChart.tsx b/src/components/HistoricWorthChart.tsx index 91730c81d..f46a7673b 100644 --- a/src/components/HistoricWorthChart.tsx +++ b/src/components/HistoricWorthChart.tsx @@ -126,7 +126,7 @@ const HistoricWorthChart = memo(function HistoricWorthChart({ setChartData(getFilteredChartData(dataPoints, startingDate)) }, [addresses, alphPriceHistory, isDataAvailable, latestWorth, startingDate]) - if (!isDataAvailable || chartData.length <= 2 || !firstItem || latestWorth === undefined) return null + if (!isDataAvailable || chartData.length < 2 || !firstItem || latestWorth === undefined) return null const xAxisDatesData = chartData.map(({ date }) => date) const yAxisWorthData = chartData.map(({ worth }) => worth)