mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
eslint fix
This commit is contained in:
parent
dfaac877fb
commit
fa4d51360b
81 changed files with 741 additions and 972 deletions
|
@ -14,6 +14,6 @@ type Handlers<State, Types extends string, Actions extends Action<Types>> = {
|
|||
export const createReducer = (
|
||||
initialState,
|
||||
handlers,
|
||||
) => (state = initialState, action) => handlers.hasOwnProperty(action.type)
|
||||
) => (state = initialState, action) => (handlers.hasOwnProperty(action.type)
|
||||
? handlers[action.type](state, action)
|
||||
: state;
|
||||
: state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue