1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 23:33:23 +08:00

Ensure latest stats are cleared on successful profile fetch

This commit is contained in:
Bartłomiej Dach 2022-12-24 13:30:54 +01:00
parent fd9110a61e
commit 3c26016b61
No known key found for this signature in database

View File

@ -77,6 +77,7 @@ namespace osu.Game.Online.Solo
var userRequest = new GetUsersRequest(new[] { localUser.OnlineID });
userRequest.Success += response => Schedule(() =>
{
latestStatistics.Clear();
foreach (var rulesetStats in response.Users.Single().RulesetsStatistics)
latestStatistics.Add(rulesetStats.Key, rulesetStats.Value);
});