* Updates the Sign-in button state depending on ReCaptcha and form values state.
()
| 122 | * Updates the Sign-in button state depending on ReCaptcha and form values state. |
| 123 | */ |
| 124 | function updateSignInButtonUI() { |
| 125 | signInButton.disabled = !isPhoneNumberValid() || !!window.signingIn; |
| 126 | } |
| 127 | |
| 128 | signInForm.addEventListener('submit', onSignInSubmit); |
| 129 | phoneNumberInput.addEventListener('keyup', updateSignInButtonUI); |
no test coverage detected