From ede8f468ea1a70715d1e76d1a6fa82cca6fdd235 Mon Sep 17 00:00:00 2001 From: Luca Ramundo Date: Wed, 28 Feb 2018 07:49:03 +0100 Subject: [PATCH] Fix typo --- src/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index ed04159..c4ba899 100644 --- a/src/index.js +++ b/src/index.js @@ -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