Admin: fix optimistic approve

This commit is contained in:
Alex Gleason 2020-12-29 18:53:06 -06:00
parent 299c14adc8
commit 23a4a605a1
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -65,6 +65,7 @@ export default function admin(state = initialState, action) {
case ADMIN_USERS_DELETE_SUCCESS:
return deleteUsers(state, action.nicknames);
case ADMIN_USERS_APPROVE_REQUEST:
return state.update('awaitingApproval', set => set.subtract(action.nicknames));
case ADMIN_USERS_APPROVE_SUCCESS:
return approveUsers(state, action.users);
default: