if (data.response == "wrong_data") {
generateToast(data.message, 7000);
grecaptcha.reset();
}
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
)]}'
["rresp", .......
As a result, if the user introduces a wrong email has to reload the page to submit it again as recaptcha won reset.
What is the error?