1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 17:45:20 +08:00

Fix daily challenge display showing incorrect statistic

This commit is contained in:
Salman Ahmed 2024-07-30 08:12:03 +03:00
parent dca61eb76c
commit 91dfe4515b
2 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@ namespace osu.Game.Tests.Visual.Online
AddSliderStep("weekly best", 0, 250, 1, v => update(s => s.WeeklyStreakBest = v));
AddSliderStep("top 10%", 0, 999, 0, v => update(s => s.Top10PercentPlacements = v));
AddSliderStep("top 50%", 0, 999, 0, v => update(s => s.Top50PercentPlacements = v));
AddSliderStep("playcount", 0, 999, 0, v => update(s => s.PlayCount = v));
AddStep("create", () =>
{
Clear();

View File

@ -97,8 +97,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
}
var statistics = User.Value.User.DailyChallengeStatistics;
// dailyStreak.Text = UsersStrings.ShowDailyChallengeUnitDay(statistics.DailyStreakCurrent);
dailyStreak.Text = $"{statistics.DailyStreakCurrent}d";
// dailyStreak.Text = UsersStrings.ShowDailyChallengeUnitDay(statistics.PlayCount);
dailyStreak.Text = $"{statistics.PlayCount}d";
TooltipContent = new DailyChallengeStreakTooltipData(colourProvider, statistics);
Show();
}