Merge pull request #162 from coralproject/wordlist

Fix banned word bug
This commit is contained in:
Kim Gardner
2016-12-12 19:39:41 -05:00
committed by GitHub
+1 -2
View File
@@ -45,8 +45,7 @@ class CommentBox extends Component {
postItem(comment, 'comments')
.then((postedComment) => {
const commentId = postedComment.id;
const status = postedComment.status;
if (status[0] && status[0].type === 'rejected') {
if (postedComment.status === 'rejected') {
addNotification('error', lang.t('comment-post-banned-word'));
} else if (premod === 'pre') {
addNotification('success', lang.t('comment-post-notif-premod'));