From e09d4faee40c2b1ab07743a2e3db2acb40eb8f34 Mon Sep 17 00:00:00 2001 From: Yasiru Dharmathilaka Date: Wed, 22 May 2024 09:46:15 +0530 Subject: [PATCH] refactor: Remove unused code for auto-refreshing leaderboard page --- src/app/(client)/(pages)/leaderboard/page.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/(client)/(pages)/leaderboard/page.tsx b/src/app/(client)/(pages)/leaderboard/page.tsx index 913cc5d..3e7289d 100644 --- a/src/app/(client)/(pages)/leaderboard/page.tsx +++ b/src/app/(client)/(pages)/leaderboard/page.tsx @@ -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",