From cfe60be3cf93caf170a5478cf1a90063ef1b7d41 Mon Sep 17 00:00:00 2001 From: Joe Uhren Date: Wed, 20 Mar 2024 19:44:05 -0600 Subject: [PATCH] Reset hCaptcha after submit claim address form --- views/claim_address.pug | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views/claim_address.pug b/views/claim_address.pug index f4728ddd..866ddefe 100644 --- a/views/claim_address.pug +++ b/views/claim_address.pug @@ -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);