Skip to content

Commit

Permalink
Merge pull request #21 from tomatau/undefinedResolved
Browse files Browse the repository at this point in the history
Default resolved parameter to an empty object
  • Loading branch information
Patrick Burtchaell committed Nov 8, 2015
2 parents 7da4867 + 3450c0d commit 13065e7
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 @@ -29,7 +29,7 @@ export default function promiseMiddleware(config={}) {
* action object.
*/
return promise.then(
resolved => next({ // eslint-disable-line no-shadow
(resolved={}) => next({
type: `${type}_${FULFILLED}`,
...resolved.meta || resolved.payload ? resolved : {
...resolved && { payload: resolved },
Expand Down

0 comments on commit 13065e7

Please sign in to comment.