Skip to content

Commit

Permalink
Reset hCaptcha after submit claim address form
Browse files Browse the repository at this point in the history
  • Loading branch information
joeuhren committed Mar 21, 2024
1 parent 9c57b4b commit cfe60be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions views/claim_address.pug
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ block content
) {
// clear out the captcha to allow the form to be submitted again
grecaptcha.reset();
} else if (
'#{selected_captcha_name}' == 'hcaptcha'
) {
// clear out the captcha to allow the form to be submitted again
hcaptcha.reset()
}

$('button.btn-success').attr('disabled', false);
Expand Down

0 comments on commit cfe60be

Please sign in to comment.