diff --git a/src/hooks/orderbook/useCenterOrderbook.ts b/src/hooks/orderbook/useCenterOrderbook.ts index 77c565e..198545b 100644 --- a/src/hooks/orderbook/useCenterOrderbook.ts +++ b/src/hooks/orderbook/useCenterOrderbook.ts @@ -18,5 +18,5 @@ export const useCenterOrderbook = ({ marketId, orderbookRef }: ElementProps) => if (orderbookEl && shouldScroll) { orderbookEl.scrollTo({ top: (scrollHeight - clientHeight) / 2 }); } - }, [clientHeight, shouldScroll, marketId]); + }, [shouldScroll, marketId]); };