1
0
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:
Andrei Zavatski 2019-10-17 23:20:01 +03:00
parent 9ee63a8c1a
commit 22511e41e2

View File

@ -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;
}