From 81a408a0b118d868f8e5220463412db4dcdb46cc Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Fri, 10 Feb 2017 13:21:58 -0700 Subject: [PATCH] fix very annoying Like bug --- client/coral-plugin-likes/LikeButton.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/coral-plugin-likes/LikeButton.js b/client/coral-plugin-likes/LikeButton.js index d7a981e95..145080469 100644 --- a/client/coral-plugin-likes/LikeButton.js +++ b/client/coral-plugin-likes/LikeButton.js @@ -42,8 +42,8 @@ class LikeButton extends Component { if (currentUser.banned) { return; } - if (!liked) { - this.setState({localPost: 'temp', localDelete: false}); + if (!liked) { // this comment has not yet been liked by this user. + this.setState({localPost: 'temp'}); postLike({ item_id: id, item_type: 'COMMENTS' @@ -58,11 +58,7 @@ class LikeButton extends Component { return