Skip to content

Commit

Permalink
fix: error validate card when wasn't filled yet
Browse files Browse the repository at this point in the history
  • Loading branch information
contardi committed Apr 17, 2024
1 parent 95ad6ba commit 972bf74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions i18n/pt_BR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,5 @@
"The number of installments cannot be greater than the number of installments of the plan.","A quantidade de parcelas não pode ser maior que a quantidade de parcelas do plano."
"In cash","À vista"
"Customer will choose in checkout","Cliente escolherá na finalização"
"Your saved cards","Seus cartões salvos"
"New Card.","Novo Cartão"
4 changes: 2 additions & 2 deletions view/frontend/web/template/payment/cc-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- ko if: (hasPaymentProfiles()) -->
<div class="field number required">
<label data-bind="attr: {for: getCode() + '_cc_number'}" class="label">
<span><!-- ko i18n: 'New Card' --><!-- /ko --></span>
<span><!-- ko i18n: 'Your saved cards' --><!-- /ko --></span>
</label>
<div class="control">
<select name="payment[payment_profile]"
Expand All @@ -18,7 +18,7 @@
options: getPaymentProfiles(),
optionsValue: 'value',
optionsText: 'text',
optionsCaption: $t('Select a saved credit card'),
optionsCaption: $t('New Card.'),
value: selectedPaymentProfile"></select>
</div>
</div>
Expand Down

0 comments on commit 972bf74

Please sign in to comment.