takeru0001 5 سال پیش
والد
کامیت
765b90b4a6
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/client/js/components/BookmarkButton.jsx
  2. 1 1
      src/client/js/components/LikeButton.jsx

+ 1 - 1
src/client/js/components/BookmarkButton.jsx

@@ -27,7 +27,7 @@ class BookmarkButton extends React.Component {
 
   render() {
     const { pageContainer } = this.props;
-    const isUserLoggedIn = this.props.crowi.currentUserId != null;
+    const isUserLoggedIn = this.props.appContainer.currentUser != null;
 
     return (
       <button

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

@@ -27,7 +27,7 @@ class LikeButton extends React.Component {
 
   render() {
     const { pageContainer } = this.props;
-    const isUserLoggedIn = this.props.appContainer.currentUserId != null;
+    const isUserLoggedIn = this.props.appContainer.currentUser != null;
 
     return (
       <button