reset grecaptcha in case of error
All checks were successful
mapguesser/pipeline/pr-develop This commit looks good

This commit is contained in:
Bence Pőcze 2023-09-25 21:19:32 +02:00
parent 5d367d5b35
commit 7fb75c9f25
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -89,6 +89,9 @@ var MapGuesser = {
formError.style.display = 'block';
formError.innerHTML = this.response.error.errorText;
if (typeof grecaptcha !== 'undefined') {
grecaptcha.reset();
}
return;
}