* Updates the enroll send code button state depending on form values state.
()
| 529 | * Updates the enroll send code button state depending on form values state. |
| 530 | */ |
| 531 | function updateEnrollSendCodeButtonUI() { |
| 532 | const sendCode = document.getElementById( |
| 533 | 'enroll-send-code-button', |
| 534 | )! as HTMLButtonElement; |
| 535 | sendCode.disabled = !isCaptchaOK() || !isPhoneNumberValid(); |
| 536 | } |
| 537 | |
| 538 | /** |
| 539 | * Updates the sign in send code button state depending on form values state. |
no test coverage detected