[web] skip login re-try request when no captcha response was generated GitOrigin-RevId: 9edc6e8394914a710020983fe9cbcf09d543a82f
@@ -33,6 +33,9 @@ function formSubmitHelper(formEl) {
) {
// Trigger captcha unconditionally.
const captchaResponse = await validateCaptchaV2()
+ if (!captchaResponse) {
+ throw e
+ }
data = await sendFormRequest(formEl, captchaResponse)
} else {
throw e