itizawa 6 سال پیش
والد
کامیت
4200d449a4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/client/js/components/LikeButton.jsx

+ 1 - 1
src/client/js/components/LikeButton.jsx

@@ -19,7 +19,7 @@ class LikeButton extends React.Component {
 
   async handleClick() {
     const { appContainer, pageId } = this.props;
-    const bool = this.state.isLiked;
+    const bool = !this.state.isLiked;
     try {
       await appContainer.apiv3.put('/page/likes', { pageId, bool });
       this.setState({ isLiked: bool });