Use similar check used on tooltip

This commit is contained in:
Joehu 2019-04-30 21:51:56 -07:00
parent 3cd6ccfc3d
commit 1408513ebd
1 changed files with 2 additions and 2 deletions

View File

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