From b9bb8d63ec41eafa4a545be85b47cdf0af993af0 Mon Sep 17 00:00:00 2001 From: Madalina Raicu Date: Fri, 10 Feb 2023 15:11:38 +0000 Subject: [PATCH] fix: reading 'price' undefined big number --- libs/market-depth/src/lib/orderbook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/market-depth/src/lib/orderbook.tsx b/libs/market-depth/src/lib/orderbook.tsx index 855b53212..da074d87f 100644 --- a/libs/market-depth/src/lib/orderbook.tsx +++ b/libs/market-depth/src/lib/orderbook.tsx @@ -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); }