diff options
Diffstat (limited to 'source/features/minimize-user-comments.tsx')
-rw-r--r-- | source/features/minimize-user-comments.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/features/minimize-user-comments.tsx b/source/features/minimize-user-comments.tsx index 8fd2e5ac..79c9b940 100644 --- a/source/features/minimize-user-comments.tsx +++ b/source/features/minimize-user-comments.tsx @@ -44,7 +44,9 @@ async function onButtonClick(event: React.MouseEvent<HTMLButtonElement>): Promis } await setMinimizedUsers(minimizedUsers); - anchorScroll(minimizeMutedUserComments, comment); + const resetScroll = anchorScroll(comment); + await minimizeMutedUserComments(); + resetScroll(); } async function handleMenuOpening(event: DelegateEvent): Promise<void> { |