Removing ternary

This commit is contained in:
Belen Curcio committed 2017-11-28 14:56:29 -03:00
1 parent 20d0cbaf27
commit da2b9aca03
1 file changed
+7 -1
@@ -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();
}