fix: reading 'price' undefined big number

This commit is contained in:
Madalina Raicu
2023-02-10 15:11:38 +00:00
parent 01781fd94a
commit b9bb8d63ec
+1 -1
View File
@@ -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);
}