Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Generate new captcha token if payment api fails
Browse files Browse the repository at this point in the history
  • Loading branch information
subbiahsn authored and eyko committed Sep 6, 2019
1 parent 9e4c5da commit 5883542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/components/Payment/Payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export class Payment extends Component {
} else {
errors = [<FormattedMessage id="fundraiser.unknown_error" />];
}
if (RECAPTCHA_SITE_KEY) this.loadReCaptcha();
this.setState({ errors: errors });
this.onError(response);
};
Expand Down

0 comments on commit 5883542

Please sign in to comment.