diff --git a/libs/trades/src/lib/trades-table.tsx b/libs/trades/src/lib/trades-table.tsx index af9dbda1f..94e165572 100644 --- a/libs/trades/src/lib/trades-table.tsx +++ b/libs/trades/src/lib/trades-table.tsx @@ -24,7 +24,7 @@ const changeCellClass = if (typeof rowIndex === 'number') { const prevRowNode = api.getModel().getRow(rowIndex + 1); - const prevValue = prevRowNode?.data[dataKey]; + const prevValue = prevRowNode?.data && prevRowNode.data[dataKey]; const valueNum = new BigNumber(value); if (valueNum.isGreaterThan(prevValue)) {