Fill daily challenge top 50 position numbers client-side

Only doing this client-side, because doing this server-side is
expensive:

	https://github.com/ppy/osu-web/pull/11354#discussion_r1689224285
This commit is contained in:
Bartłomiej Dach 2024-07-24 08:54:30 +02:00
parent aded31bd07
commit bf4bf4d39e
No known key found for this signature in database

View File

@ -138,9 +138,9 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
}
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 =>