Skip to content

Commit

Permalink
refactor: Remove unused code for auto-refreshing leaderboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoItsYas committed May 22, 2024
1 parent e5848b4 commit e09d4fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/(client)/(pages)/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export default function Page() {
fetchData();
}, []);

useEffect(() => {
const interval = setInterval(() => {
window.location.reload();
}, 30000);
// useEffect(() => {
// const interval = setInterval(() => {
// window.location.reload();
// }, 30000);

return () => clearInterval(interval);
}, []);
// return () => clearInterval(interval);
// }, []);

const style = {
boxShadowLittle: "3px 3px #000",
Expand Down

0 comments on commit e09d4fa

Please sign in to comment.