fix: reading 'price' undefined big number
This commit is contained in:
@@ -334,7 +334,7 @@ export const Orderbook = ({
|
||||
BigInt(maxPriceLevel) -
|
||||
BigInt(offsetTop) * BigInt(resolution)
|
||||
).toString()
|
||||
: rows?.[Math.min(offsetTop, rows.length - 1)].price.toString();
|
||||
: rows?.[Math.min(offsetTop, rows.length - 1)].price?.toString();
|
||||
if (lockOnMidPrice) {
|
||||
setLockOnMidPrice(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user