Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Ramundo committed Feb 28, 2018
1 parent 695fe23 commit ede8f46
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const reducer = (initialState, map = {}) =>
validate(map) &&
(state = initialState, action = {}) =>
map[action.type]
? map[action.type](state, action, initialState)
: state
validate(map) && (
(state = initialState, action = {}) =>
map[action.type]
? map[action.type](state, action, initialState)
: state
)

export default reducer
module.exports = reducer
Expand Down

0 comments on commit ede8f46

Please sign in to comment.