diff --git a/package.json b/package.json index 8ac1b05..dacd85a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-devtools-dispatch", - "version": "1.0.0", + "version": "2.0.1", "description": "Dispatch your actions manually to test if your app reacts well", "main": "lib/index.js", "scripts": { diff --git a/src/Dispatcher.js b/src/Dispatcher.js index 1289d2d..68c232f 100644 --- a/src/Dispatcher.js +++ b/src/Dispatcher.js @@ -149,7 +149,7 @@ export default class Dispatcher extends Component { if(object.hasOwnProperty(propertyName)) { if(typeof prop === "function") { functions.push({ - name: namespace + (prop.name || 'anonymous'), + name: namespace + (propertyName || prop.name || 'anonymous'), func: prop, args: getParams(prop), });