itizawa 5 years ago
parent
commit
4158af7084
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/client/js/components/LikeButton.jsx

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

@@ -18,8 +18,8 @@ class LikeButton extends React.Component {
   }
 
   async handleClick() {
-    const { pageContainer } = this.props;
-    const isGuestUser = pageContainer.state.isGuestUser;
+    const { appContainer, pageContainer } = this.props;
+    const { isGuestUser } = appContainer;
 
     if (isGuestUser) {
       return;