remove clientHeight from dep list

This commit is contained in:
jaredvu
2023-11-26 15:02:38 -08:00
parent ca9501e3cc
commit 19a377a9e5
+1 -1
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]);
};