itizawa 6 years ago
parent
commit
4200d449a4
1 changed files with 1 additions and 1 deletions
  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() {
   async handleClick() {
     const { appContainer, pageId } = this.props;
     const { appContainer, pageId } = this.props;
-    const bool = this.state.isLiked;
+    const bool = !this.state.isLiked;
     try {
     try {
       await appContainer.apiv3.put('/page/likes', { pageId, bool });
       await appContainer.apiv3.put('/page/likes', { pageId, bool });
       this.setState({ isLiked: bool });
       this.setState({ isLiked: bool });