Skip to content

Commit

Permalink
Fix wrong global leaderboard page retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Nov 24, 2024
1 parent b5e7e8f commit f0c2d0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const run: SlashSubcommand<true>["run"] = async (_, interaction) => {

const ranks =
leaderboardCache.get(actualPage) ??
(await DroidHelper.getGlobalLeaderboard(page));
(await DroidHelper.getGlobalLeaderboard(actualPage + 1));

if (!leaderboardCache.has(actualPage)) {
leaderboardCache.set(actualPage, ranks);
Expand Down

0 comments on commit f0c2d0c

Please sign in to comment.