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, getArchivedLatestSeasonNumber,
getArchivedRatingLeaderboard, getArchivedRatingLeaderboard,
getClanAccountInfo, getClanAccountInfo,
getLeagueFromScore,
getRatingInfo, getRatingInfo,
getRatingLeague, getRatingLeague,
getRatingNeighbors, getRatingNeighbors,
@@ -271,8 +270,7 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
); );
}, },
); );
const score = result.find(({ id }) => id === playerId)!.score; const leagueInfo = LEAGUES[leagueIndex];
const leagueInfo = getLeagueFromScore(score);
archivedLeaderboard = await getArchivedRatingLeaderboard( archivedLeaderboard = await getArchivedRatingLeaderboard(
region, region,
season, season,