Przeglądaj źródła

BugFix isCurrentUserIsAuthor()

Yuki Takei 8 lat temu
rodzic
commit
1ff776c5b1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      resource/js/components/PageComment/Comment.js

+ 1 - 1
resource/js/components/PageComment/Comment.js

@@ -24,7 +24,7 @@ export default class Comment extends React.Component {
   }
 
   isCurrentUserIsAuthor() {
-    return this.props.comment.creator._id === this.props.currentUserId;
+    return this.props.comment.creator.username === this.props.currentUserId;
   }
 
   isCurrentRevision() {