Skip to content

Commit

Permalink
Merge pull request #72 from elisei/Magento@2.4.6
Browse files Browse the repository at this point in the history
PagBank 😍 Magento
  • Loading branch information
elisei authored Dec 4, 2024
2 parents f7ce76b + 1963d59 commit 0ef5fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/frontend/web/js/view/customer/vault/cards/save-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ define([
focusInvalid: false
});

$('#card_number').on('input', () => {
$('#card_number').on('input', function() {
let value = $(this).val().replace(/\D/g, '');
const cardType = $('#cc_type').val();

Expand All @@ -94,7 +94,7 @@ define([
$(this).val(value);
});

$('#card_number').on('keyup', () => {
$('#card_number').on('keyup', function() {
const number = $(this).val().replace(/\s/g, '');
const result = creditCardNumberValidator(number);

Expand Down

0 comments on commit 0ef5fa1

Please sign in to comment.