Fix rank graph tooltip display

This commit is contained in:
Bartłomiej Dach 2020-03-05 20:11:14 +01:00
parent 5d1ead3109
commit d3937acfe9

View File

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Humanizer;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Graphics;
@ -70,8 +71,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
return new TooltipDisplayContent
{
Rank = $"#{rank:#,##0}",
Time = days == 0 ? "now" : $"{days} days ago"
Rank = $"#{rank:N0}",
Time = days == 0 ? "now" : $"{"day".ToQuantity(days)} ago"
};
}