Removing ternary

This commit is contained in:
Belen Curcio
2017-11-28 14:56:29 -03:00
parent 20d0cbaf27
commit da2b9aca03
@@ -64,7 +64,13 @@ class PeopleContainer extends React.Component {
setUserBanStatus = async (id, bannedStatus) => {
const {banUser, unBanUser} = this.props;
await bannedStatus ? banUser({id, message: ''}) : unBanUser({id});
if (bannedStatus) {
await banUser({id, message: ''});
} else {
await unBanUser({id});
}
await this.fetchUsers();
}