1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +08:00

Check for null instead of not null

This commit is contained in:
Joehu 2019-04-30 22:07:06 -07:00
parent 9b2d5727cd
commit 6b7397b9cf

View File

@ -148,8 +148,8 @@ namespace osu.Game.Overlays.Profile.Header
foreach (var scoreRankInfo in scoreRankInfos)
scoreRankInfo.Value.RankCount = user?.Statistics?.GradesCount[scoreRankInfo.Key] ?? 0;
detailGlobalRank.Content = user?.Statistics?.Ranks.Global != null ? $"#{user?.Statistics?.Ranks.Global?.ToString("#,##0")}" : "-";
detailCountryRank.Content = user?.Statistics?.Ranks.Country != null ? $"#{user?.Statistics?.Ranks.Country?.ToString("#,##0")}" : "-";
detailGlobalRank.Content = user?.Statistics?.Ranks.Global == null ? "-" : $"#{user?.Statistics?.Ranks.Global?.ToString("#,##0")}";
detailCountryRank.Content = user?.Statistics?.Ranks.Country == null ? "-" : $"#{user?.Statistics?.Ranks.Country?.ToString("#,##0")}";
rankGraph.User.Value = user;
}