Skip to content

Commit

Permalink
Merge pull request #4715 from coralproject/fix/refresh-comments-load
Browse files Browse the repository at this point in the history
fix: refresh comments button shouldn't show on initial load
  • Loading branch information
tessalt authored Dec 12, 2024
2 parents af59e56 + 5705af1 commit 0f8ad20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const AllCommentsTabContainer: FunctionComponent<Props> = ({
if (visible && isNotFirstLoad && live) {
setShowCommentRefreshButton(true);
}
}, [visible, setShowCommentRefreshButton, live, isNotFirstLoad]);
}, [visible, setShowCommentRefreshButton, live]);

useEffect(() => {
if (!topOfCommentsInView && allCommentsInView) {
Expand Down

0 comments on commit 0f8ad20

Please sign in to comment.