in client/src/components/checkout-form.js [61:76]
async submitForm(event) {
event?.preventDefault();
// Disable submit while form is being sent
this.state.disableSubmit = true;
this.requestUpdate();
const form = new FormData(this.shadowRoot.querySelector('form') || {});
await this.onSubmit(form);
// Waiting till callstack is empty to re-enable submit button
setTimeout(() => {
this.state.disableSubmit = false;
this.requestUpdate();
}, 0);
}