Do not trigger customer lookup when pressing enter to avoid duplicate otp modal

This commit is contained in:
Emili Castells Guasch 2024-04-29 16:01:42 +02:00
parent c13b9b2621
commit b6f913d9db

View file

@ -160,7 +160,6 @@ class AxoManager {
this.$('form.woocommerce-checkout input').on('keydown', async (ev) => {
if(ev.key === 'Enter' && getCurrentPaymentMethod() === 'ppcp-axo-gateway' ) {
ev.preventDefault();
await this.lookupCustomerByEmail();
}
});
}