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