Skip to content

Commit 8437b2e

Browse files
committed
fix: add empty dependency array to the scrolltop useeffect
1 parent 0596e7f commit 8437b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/ScrollTop.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ScrollTop: React.FC = () => {
77

88
useEffect(() => {
99
scrollTop();
10-
});
10+
}, []);
1111

1212
return <></>;
1313
};

0 commit comments

Comments
 (0)