Skip to content

Commit

Permalink
fix(ras-acc): handle recaptcha errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenn00dle committed Aug 28, 2024
1 parent 06d71c2 commit 685be30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal-checkout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ domReady(
// Initiate reCAPTCHA, if available.
if ( newspack_grecaptcha?.render ) {
$form.data( 'newspack-recaptcha', 'newspack_modal_checkout' );
newspack_grecaptcha.render( $form.get() );
newspack_grecaptcha.render( $form.get(), ( error ) => handleFormError( error ) );
}
if ( $coupon.length ) {
$coupon.show();
Expand Down

0 comments on commit 685be30

Please sign in to comment.