Adding message

This commit is contained in:
Belen Curcio
2017-11-23 08:13:03 -03:00
parent c6c7961dc9
commit 903973ce4b
2 changed files with 2 additions and 2 deletions
@@ -15,7 +15,7 @@ class BanUserDialogContainer extends Component {
banUser = async () => {
const {userId, commentId, commentStatus, banUser, setCommentStatus, hideBanUserDialog, notify} = this.props;
try {
await banUser({id: userId, status: true});
await banUser({id: userId, message: ''});
hideBanUserDialog();
if (commentId && commentStatus && commentStatus !== 'REJECTED') {
await setCommentStatus({commentId, status: 'REJECTED'});
@@ -26,7 +26,7 @@ class BanUserDialogContainer extends React.Component {
try {
await banUser({
id: authorId,
status: true,
message: '',
});
closeMenu();