Web: Components: Fix getting wrong scroll element in InfiniteLoader

This commit is contained in:
Aleksandr Lushkin 2023-07-27 12:56:17 +02:00
parent 37efdc292a
commit ef56084b68

View File

@ -13,8 +13,8 @@ const InfiniteLoaderComponent = (props) => {
useEffect(() => (isLoading ? showLoader() : hideLoader()), [isLoading]);
const scroll = isMobileOnly
? document.querySelector("#customScrollBar > .scroll-body")
: document.querySelector("#sectionScroll > .scroll-body");
? document.querySelector("#customScrollBar")
: document.querySelector("#sectionScroll");
return isLoading ? (
<Loader