mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Updating to detect new status format.
This commit is contained in:
@@ -46,7 +46,7 @@ class CommentBox extends Component {
|
||||
.then((postedComment) => {
|
||||
const commentId = postedComment.id;
|
||||
const status = postedComment.status;
|
||||
if (status === 'rejected') {
|
||||
if (status[0] && status[0].type === 'rejected') {
|
||||
addNotification('error', lang.t('comment-post-banned-word'));
|
||||
} else if (premod === 'pre') {
|
||||
addNotification('success', lang.t('comment-post-notif-premod'));
|
||||
|
||||
Reference in New Issue
Block a user