Skip to content

Commit

Permalink
Installment Feature Not Working (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi authored Feb 18, 2025
1 parent edd889f commit 28b052d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/cc-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<!-- ko if: (hasInstallments())-->

<div class="field required"
data-bind="attr: {id: getCode() + '_installments_div'}, visible: installments().length > 0">
data-bind="attr: {id: getCode() + '_installments_div'},visible: installments() && Array.isArray(installments()) && installments().length > 0">
<label data-bind="attr: {for: getCode() + '_installments'}" class="label">
<span><!-- ko text: $t('Installments')--><!-- /ko --></span>
</label>
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/cc-vault-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<!-- ko if: (hasInstallments())-->

<div class="field required"
data-bind="attr: {id: getCode() + '_installments_div'}, visible: installments().length > 0">
data-bind="attr: {id: getCode() + '_installments_div'}, visible: installments() && Array.isArray(installments()) && installments().length > 0">
<label data-bind="attr: {for: getCode() + '_installments'}" class="label">
<span><!-- ko text: $t('Installments')--><!-- /ko --></span>
</label>
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/template/payment/pos-cloud-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

<!-- ko if: (hasInstallments())-->
<div class="field required"
data-bind="attr: {id: getCode() + '_installments_div'}, visible: installments().length > 0">
data-bind="attr: {id: getCode() + '_installments_div'}, visible: installments() && Array.isArray(installments()) && installments().length > 0">
<label data-bind="attr: {for: getCode() + '_installments'}" class="label">
<span><!-- ko text: $t('Installments')--><!-- /ko --></span>
</label>
Expand Down

0 comments on commit 28b052d

Please sign in to comment.