Просмотр исходного кода

BugFix isCurrentUserIsAuthor()

Yuki Takei 8 лет назад
Родитель
Сommit
1ff776c5b1
1 измененных файлов с 1 добавлено и 1 удалено
  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() {