mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:15:45 +08:00
Use received data to set isVoted bindable
This commit is contained in:
parent
9ee63a8c1a
commit
22511e41e2
@ -78,8 +78,9 @@ namespace osu.Game.Overlays.Comments
|
||||
|
||||
private void onSuccess(CommentBundle response)
|
||||
{
|
||||
isVoted.Value = !isVoted.Value;
|
||||
votesCount.Value = response.Comments.Single().VotesCount;
|
||||
var receivedComment = response.Comments.Single();
|
||||
isVoted.Value = receivedComment.IsVoted;
|
||||
votesCount.Value = receivedComment.VotesCount;
|
||||
IsLoading = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user