Skip to content

Commit

Permalink
Fix undefined type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burtchaell committed Oct 21, 2015
1 parent 68f873c commit a0cabcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a0cabcc

Please sign in to comment.