From d73fa800bcbe357e2dc5553745a9772a94080a0f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 21 Feb 2024 07:06:16 +0100 Subject: [PATCH] Fix type error due to newly typed field in chart component --- src/shared/charts/tradeChartData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/charts/tradeChartData.ts b/src/shared/charts/tradeChartData.ts index ba916a0a..3dd53580 100644 --- a/src/shared/charts/tradeChartData.ts +++ b/src/shared/charts/tradeChartData.ts @@ -167,7 +167,7 @@ export function generateTradeSeries( }, itemStyle: { // color: tradeSellColor, - color: (v) => v.data[4], + color: (v) => (v.data ? v.data[4] : '#000'), opacity: 0.9, }, symbol: (v) => v[2],