This commit is contained in:
EVAST9919 2017-11-18 18:53:21 +03:00
parent 915ccf3c84
commit 2ff88c86ea
1 changed files with 3 additions and 3 deletions

View File

@ -57,11 +57,11 @@ public KudosuInfo(Bindable<User> user)
avaliable.TextFlow.Text = "Kudosu can be traded for kudosu stars, which will help your beatmap get " +
"more attention. This is the number of kudosu you haven't traded in yet.";
this.user.ValueChanged += newUser =>
{
total.KudosuValue = newUser == null ? 0 : newUser.Kudosu.Total;
avaliable.KudosuValue = newUser == null ? 0 : newUser.Kudosu.Available;
total.KudosuValue = newUser?.Kudosu.Total ?? 0;
avaliable.KudosuValue = newUser?.Kudosu.Available ?? 0;
};
}