Added notifications when flagging failed

This commit is contained in:
PepeFranco
2017-10-09 21:59:47 -05:00
parent 77d30bdbc1
commit c81d9c0bd1
4 changed files with 8 additions and 0 deletions
@@ -99,6 +99,7 @@ export default class FlagButton extends Component {
}
})
.catch((err) => {
this.props.notify('error', t('error.COMMENT_FLAG_FAILED'));
console.error(err);
});
} else {
@@ -109,6 +110,7 @@ export default class FlagButton extends Component {
}
})
.catch((err) => {
this.props.notify('error', t('error.USER_FLAG_FAILED'));
console.error(err);
});
}