takeru0001 5 лет назад
Родитель
Сommit
06f1a98013
1 измененных файлов с 0 добавлено и 7 удалено
  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