takeru0001 il y a 5 ans
Parent
commit
06f1a98013
1 fichiers modifiés avec 0 ajouts et 7 suppressions
  1. 0 7
      src/client/js/components/LikeButton.jsx

+ 0 - 7
src/client/js/components/LikeButton.jsx

@@ -24,16 +24,9 @@ class LikeButton extends React.Component {
     }
   }
 
-  isUserLoggedIn() {
-    return this.props.appContainer.currentUserId != null;
-  }
 
   render() {
     const { pageContainer } = this.props;
-    // if guest user
-    if (!this.isUserLoggedIn()) {
-      return <div></div>;
-    }
 
     return (
       <button