cleanup
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 46s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m10s

This commit is contained in:
Lee
2024-10-21 17:39:47 +01:00
parent de47905e28
commit d62b6524f7
4 changed files with 5 additions and 10 deletions

View File

@ -11,8 +11,6 @@ import { fetchLeaderboard } from "@ssr/common/utils/leaderboard.util";
import LeaderboardScoresResponse from "@ssr/common/response/leaderboard-scores-response";
import LeaderboardPpChart from "@/components/leaderboard/leaderboard-pp-chart";
const REFRESH_INTERVAL = 1000 * 60 * 5;
type LeaderboardDataProps = {
/**
* The initial leaderboard data.
@ -39,8 +37,6 @@ export function LeaderboardData({ initialLeaderboard, initialScores, initialPage
queryFn: async (): Promise<LeaderboardResponse<ScoreSaberLeaderboard> | undefined> => {
return fetchLeaderboard<ScoreSaberLeaderboard>("scoresaber", currentLeaderboardId + "");
},
refetchInterval: REFRESH_INTERVAL,
refetchIntervalInBackground: false,
});
useEffect(() => {