Adding message

This commit is contained in:
Belen Curcio committed 2017-11-23 08:13:03 -03:00
1 parent c6c7961dc9
commit 903973ce4b
2 files changed
+2 -2

No files matched your search

@@ -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();