Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Fix #966 removing duplicated response.response
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertschuler committed Aug 30, 2019
1 parent aeb17be commit 968a9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/actions/donateAction.js
Expand Up @@ -80,7 +80,7 @@ export function donate(donationContribution, plantProjectId, loggedIn) {
dispatch(
paymentFailed({
status: false,
message: response.response.data || 'error'
message: response.data || 'error'

This comment has been minimized.

Copy link
@crucialfelix

crucialfelix Sep 2, 2019

Contributor

This is a naming problem: catch(response => It's not a response, it's an Error.

})
);
dispatch(setProgressModelState(false));
Expand Down Expand Up @@ -155,7 +155,7 @@ export function gift(donationContribution, plantProjectId, loggedIn) {
dispatch(
paymentFailed({
status: false,
message: response.response.data || 'error'
message: response.data || 'error'
})
);
dispatch(setProgressModelState(false));
Expand Down

0 comments on commit 968a9fc

Please sign in to comment.