diff --git a/ui/component/commentsList/view.jsx b/ui/component/commentsList/view.jsx index 6a8ef9556..03513ef7f 100644 --- a/ui/component/commentsList/view.jsx +++ b/ui/component/commentsList/view.jsx @@ -111,12 +111,12 @@ function CommentList(props: Props) { } } - if (!isFetchingComments && moreBelow && spinnerRef && spinnerRef.current) { + if (!isFetchingComments && readyToDisplayComments && moreBelow && spinnerRef && spinnerRef.current) { window.addEventListener('scroll', handleCommentScroll); } return () => window.removeEventListener('scroll', handleCommentScroll); - }, [moreBelow, handleMoreBelow, spinnerRef]); + }, [moreBelow, handleMoreBelow, spinnerRef, isFetchingComments, readyToDisplayComments]); function prepareComments(arrayOfComments, linkedComment, isFetchingComments) { let orderedComments = [];