Skip to content

Commit

Permalink
Missing return on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed May 19, 2022
1 parent 28c4b33 commit f80ee65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/donate.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,10 @@ <h4 class="col s12">Thank you for donating <span class="amount"></span> to Impac
var currency = form['currency'].value.trim()
var captcha = $("#g-recaptcha-response").val()

if (!captcha) showError($(form), "Recaptcha is required")
if (!captcha) {
showError($(form), "Recaptcha is required")
return
}

// Show a spinner while creating payment
loading($(form), true)
Expand Down

0 comments on commit f80ee65

Please sign in to comment.