Skip to content

Commit

Permalink
Merge pull request #29036 from bdach/hardcode-positions-for-leaderboard
Browse files Browse the repository at this point in the history
Fill daily challenge top 50 position numbers client-side
  • Loading branch information
peppy authored Jul 24, 2024
2 parents 65fcef1 + bf4bf4d commit 6e46256
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ public void RefetchScores()
}
else
{
LoadComponentsAsync(best.Select(s => new LeaderboardScoreV2(s, sheared: false)
LoadComponentsAsync(best.Select((s, index) => new LeaderboardScoreV2(s, sheared: false)
{
Rank = s.Position,
Rank = index + 1,
IsPersonalBest = s.UserID == api.LocalUser.Value.Id,
Action = () => PresentScore?.Invoke(s.OnlineID),
}), loaded =>
Expand Down

0 comments on commit 6e46256

Please sign in to comment.