Invert hide logic for readability

This commit is contained in:
Dean Herbert 2020-11-24 13:12:04 +09:00
parent 44ca67c534
commit 82640418ba

View File

@ -43,14 +43,14 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
{ {
var values = GetValues(e.NewValue); var values = GetValues(e.NewValue);
if (values?.Length > 1) if (values == null || values.Length <= 1)
{ {
chart.Values = fillZeroValues(values); Hide();
Show();
return; return;
} }
Hide(); chart.Values = fillZeroValues(values);
Show();
} }
/// <summary> /// <summary>