diff --git a/client/coral-admin/src/routes/Community/containers/People.js b/client/coral-admin/src/routes/Community/containers/People.js index 54bc92d02..3b769e60e 100644 --- a/client/coral-admin/src/routes/Community/containers/People.js +++ b/client/coral-admin/src/routes/Community/containers/People.js @@ -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(); }