Simply condition

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Joseph Madamba 2020-08-17 23:08:51 -07:00 committed by GitHub
parent e0383f6100
commit 4d6b52a0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ private class RankLabel : Container, IHasTooltip
{
public RankLabel(int? rank)
{
TooltipText = rank == null || rank < 1000 ? null : $"#{rank:N0}";
if (rank >= 1000)
TooltipText = $"#{rank:N0}";
Child = new OsuSpriteText
{