Skip to content

Commit

Permalink
don't show the Refresh comments button when live updates are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Nov 28, 2024
1 parent 317fe8b commit 234c4f7
Show file tree
Hide file tree
Showing 2 changed files with 623 additions and 718 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ export const AllCommentsTabContainer: FunctionComponent<Props> = ({
}, [visible, isNotFirstLoad]);

useEffect(() => {
if (visible && isNotFirstLoad) {
if (visible && isNotFirstLoad && live) {
setShowCommentRefreshButton(true);
}
}, [visible, setShowCommentRefreshButton]);
}, [visible, setShowCommentRefreshButton, live, isNotFirstLoad]);

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

0 comments on commit 234c4f7

Please sign in to comment.