diff --git a/src/index.js b/src/index.js index bfbf94ea..33b3a7a2 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ export default function promiseMiddleware() { return next(action); } - const { types, meta } = action; + const { type, meta } = action; const { promise, data } = action.payload; const [ PENDING, FULFILLED, REJECTED ] = type;