onEmailChange()

in client/src/components/checkout-form.js [48:55]


  onEmailChange() {
    const form = new FormData(this.shadowRoot.querySelector('form') || {});
    const isValid = this.isValidEmail(form.get('email'));

    // Disable submit while form is being sent
    this.state.disableSubmit = !isValid;
    this.requestUpdate();
  }