mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
Updating to detect new status format.
This commit is contained in:
1 parent
8446c49c14
commit
6d701ef49e
2 files changed
+1
-2
No files matched your search
@@ -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