diff --git a/src/app/store/actions/makeActionCreator.js b/src/app/store/actions/makeActionCreator.js index 1fc9bee9..91775d5c 100644 --- a/src/app/store/actions/makeActionCreator.js +++ b/src/app/store/actions/makeActionCreator.js @@ -3,12 +3,11 @@ type ActionType = { type: string, }; -export default function makeActionCreator(type: string, ...argNames: Array): (Array) => ActionType { +export default function makeActionCreator(type: string, ...argNames: Array): (Array) => ActionType { - return function (...args) { + return function actionCreator(...args) { let action = { type }; argNames.forEach((arg, index) => { - // $FlowFixMe action[argNames[index]] = args[index]; });