diff --git a/libs/datagrid/src/lib/cells/price-change-cell.tsx b/libs/datagrid/src/lib/cells/price-change-cell.tsx index 592f452dd..d0a07e3ff 100644 --- a/libs/datagrid/src/lib/cells/price-change-cell.tsx +++ b/libs/datagrid/src/lib/cells/price-change-cell.tsx @@ -18,8 +18,9 @@ export interface PriceChangeCellProps { export const PriceChangeCell = memo( forwardRef( ({ candles, decimalPlaces }: PriceChangeCellProps, ref) => { - const change = priceChange(candles); - const changePercentage = priceChangePercentage(candles); + const validCandles = candles.filter((c) => c !== ''); + const change = priceChange(validCandles); + const changePercentage = priceChangePercentage(validCandles); return ( c.close) || []; + const candles = + oneDayCandles.map((c) => c.close).filter((c) => c !== '') || []; const change = priceChange(candles); const changePercentage = priceChangePercentage(candles);