Skip to content

Commit

Permalink
Fixed input validation on the hosted customer form.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoerr committed Oct 16, 2024
1 parent 1c375e8 commit 241838b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions view/base/web/js/view/customer/hosted/paymentinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
define([
'jquery',
'Magento_Ui/js/modal/alert',
'mage/translate'
'mage/translate',
'mage/validation'
], function ($, alert) {
'use strict';

Expand Down Expand Up @@ -57,7 +58,8 @@ define([
* Confirm billing address
*/
saveAddress: function () {
if (this.element.valid() === false) {
this.element.validation();
if (this.element.validation('isValid') !== true) {
return;
}

Expand Down

0 comments on commit 241838b

Please sign in to comment.