Skip to content

Commit

Permalink
pass data/error to resolve/reject
Browse files Browse the repository at this point in the history
  • Loading branch information
sckoh committed Dec 21, 2017
1 parent f519359 commit 76c318e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/epic.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const createRequestEpic = ({
if (
get(action, 'params.resolve') && options.handleParamsPromiseResolve
) {
action.params.resolve();
action.params.resolve(data);
}
return requestActions.success(data, action.params);
})
Expand All @@ -212,7 +212,7 @@ export const createRequestEpic = ({
if (
get(action, 'params.reject') && options.handleParamsPromiseReject
) {
action.params.reject();
action.params.reject(error);
}
return Observable.of(requestActions.failure(error, action.params));
}),
Expand Down

0 comments on commit 76c318e

Please sign in to comment.