fix leaderboard id
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 48s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m22s

This commit is contained in:
Lee
2024-10-27 11:20:08 +00:00
parent 96ab9be79a
commit d086e922c4
3 changed files with 16 additions and 9 deletions

View File

@ -64,6 +64,8 @@ export default function LeaderboardScores({
enabled: shouldFetch,
});
console.log(leaderboard);
/**
* Starts the animation for the scores, but only after the initial load.
*/
@ -118,6 +120,8 @@ export default function LeaderboardScores({
return;
}
console.log(selectedLeaderboardId);
// Update the URL
window.history.replaceState(null, "", `/leaderboard/${selectedLeaderboardId}/${currentPage}`);
}, [selectedLeaderboardId, currentPage, disableUrlChanging]);
@ -157,7 +161,7 @@ export default function LeaderboardScores({
borderColor: getDifficulty(difficulty).color,
}}
>
{difficulty}
{difficulty.replace("Plus", "+")}
</Button>
);
})}