mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: rating leaderboard
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user