From 23a4a605a175028ccc73131058a94f4de27069b5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Dec 2020 18:53:06 -0600 Subject: [PATCH] Admin: fix optimistic approve --- app/soapbox/reducers/admin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/soapbox/reducers/admin.js b/app/soapbox/reducers/admin.js index 0b928dd5a..c7c6be507 100644 --- a/app/soapbox/reducers/admin.js +++ b/app/soapbox/reducers/admin.js @@ -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: