diff --git a/libs/market-depth/src/lib/orderbook.tsx b/libs/market-depth/src/lib/orderbook.tsx index e3d225dd3..f1cf58fc9 100644 --- a/libs/market-depth/src/lib/orderbook.tsx +++ b/libs/market-depth/src/lib/orderbook.tsx @@ -295,11 +295,10 @@ export const Orderbook = ({ return; } const { - contentRect: { width, height }, + contentRect: { width }, } = entries[0]; headerElement.current.style.width = `${width}px`; footerElement.current.style.width = `${width}px`; - setViewportHeight(height); }, [headerElement, footerElement] );