mirror of
https://github.com/plebbit/seedit.git
synced 2026-06-12 01:56:10 -04:00
fix(comments): wrong useeffect logic
This commit is contained in:
@@ -23,9 +23,12 @@ const Comments: FC = () => {
|
||||
} else {
|
||||
document.title = 'seedit';
|
||||
}
|
||||
window.scrollTo(0, 0);
|
||||
}, [threadTitle, subplebbitTitle]);
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className={styles.comments}>
|
||||
<Post post={comment} shouldExpand={false} />
|
||||
|
||||
Reference in New Issue
Block a user