fix: rating leaderboard

This commit is contained in:
tresabhi committed 2024-11-21 17:06:41 -06:00
1 parent 5bf6a14cff
commit edf434ed95
1 file changed
+1 -3
@@ -4,7 +4,6 @@ import {
getArchivedLatestSeasonNumber,
getArchivedRatingLeaderboard,
getClanAccountInfo,
getLeagueFromScore,
getRatingInfo,
getRatingLeague,
getRatingNeighbors,
@@ -271,8 +270,7 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
);
},
);
const score = result.find(({ id }) => id === playerId)!.score;
const leagueInfo = getLeagueFromScore(score);
const leagueInfo = LEAGUES[leagueIndex];
archivedLeaderboard = await getArchivedRatingLeaderboard(
region,
season,