mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Check for null instead of not null
This commit is contained in:
@ -148,8 +148,8 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
foreach (var scoreRankInfo in scoreRankInfos)
|
foreach (var scoreRankInfo in scoreRankInfos)
|
||||||
scoreRankInfo.Value.RankCount = user?.Statistics?.GradesCount[scoreRankInfo.Key] ?? 0;
|
scoreRankInfo.Value.RankCount = user?.Statistics?.GradesCount[scoreRankInfo.Key] ?? 0;
|
||||||
|
|
||||||
detailGlobalRank.Content = user?.Statistics?.Ranks.Global != null ? $"#{user?.Statistics?.Ranks.Global?.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")}" : "-";
|
detailCountryRank.Content = user?.Statistics?.Ranks.Country == null ? "-" : $"#{user?.Statistics?.Ranks.Country?.ToString("#,##0")}";
|
||||||
|
|
||||||
rankGraph.User.Value = user;
|
rankGraph.User.Value = user;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user