Admin: fix optimistic approve
This commit is contained in:
parent
299c14adc8
commit
23a4a605a1
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ export default function admin(state = initialState, action) {
|
||||||
case ADMIN_USERS_DELETE_SUCCESS:
|
case ADMIN_USERS_DELETE_SUCCESS:
|
||||||
return deleteUsers(state, action.nicknames);
|
return deleteUsers(state, action.nicknames);
|
||||||
case ADMIN_USERS_APPROVE_REQUEST:
|
case ADMIN_USERS_APPROVE_REQUEST:
|
||||||
|
return state.update('awaitingApproval', set => set.subtract(action.nicknames));
|
||||||
case ADMIN_USERS_APPROVE_SUCCESS:
|
case ADMIN_USERS_APPROVE_SUCCESS:
|
||||||
return approveUsers(state, action.users);
|
return approveUsers(state, action.users);
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue