2475 Inline a handler for consistency's sake

* commit '4cc68341865f5ccae294ec63103911cb032be3a0':
  Inline a handler for consistency's sake
This commit is contained in:
Artem Baskal 2020-12-24 15:38:05 +03:00
commit 6a5bd99eed
1 changed files with 1 additions and 7 deletions

View File

@ -24,13 +24,7 @@ const access = handleActions(
[actions.setAccessListRequest]: (state) => ({ ...state, processingSet: true }),
[actions.setAccessListFailure]: (state) => ({ ...state, processingSet: false }),
[actions.setAccessListSuccess]: (state) => {
const newState = {
...state,
processingSet: false,
};
return newState;
},
[actions.setAccessListSuccess]: (state) => ({ ...state, processingSet: false }),
[actions.toggleClientBlockRequest]: (state) => ({ ...state, processingSet: true }),
[actions.toggleClientBlockFailure]: (state) => ({ ...state, processingSet: false }),