summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-09 15:04:41 -0500
committerDessalines <tyhou13@gmx.com>2020-02-09 15:04:41 -0500
commit9c8fe0379fea6d3994d72dc461665789e9855423 (patch)
tree34e41c77568f5f81d79377f311f7f99f0d31d9cf /ui/src/utils.ts
parentbe539e335339e1db9704ee55563f16986df72cf4 (diff)
Adding instant voting / vote animations. Fixes #526
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index 929877fc..384d5c1d 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -601,8 +601,6 @@ export function createCommentLikeRes(
found.downvotes = data.comment.downvotes;
if (data.comment.my_vote !== null) {
found.my_vote = data.comment.my_vote;
- found.upvoteLoading = false;
- found.downvoteLoading = false;
}
}
}
@@ -620,8 +618,6 @@ export function createPostLikeRes(data: PostResponse, post: Post) {
post.downvotes = data.post.downvotes;
if (data.post.my_vote !== null) {
post.my_vote = data.post.my_vote;
- post.upvoteLoading = false;
- post.downvoteLoading = false;
}
}