remove clientHeight from dep list

This commit is contained in:
jaredvu 2023-11-26 15:02:38 -08:00
parent ca9501e3cc
commit 19a377a9e5
No known key found for this signature in database
GPG Key ID: B9FE2F3F0A5D523C

View File

@ -18,5 +18,5 @@ export const useCenterOrderbook = ({ marketId, orderbookRef }: ElementProps) =>
if (orderbookEl && shouldScroll) {
orderbookEl.scrollTo({ top: (scrollHeight - clientHeight) / 2 });
}
}, [clientHeight, shouldScroll, marketId]);
}, [shouldScroll, marketId]);
};