Skip to content

Commit

Permalink
Fix formatting and variable declaration in payment form
Browse files Browse the repository at this point in the history
Corrected variable declaration from `let` to `const` in a loop
  • Loading branch information
dhongu committed Jan 31, 2025
1 parent f267374 commit c0ca79c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ publicWidget.registry.websiteSaleDelivery.include({
let acquirerAllowedIds = input.getAttribute("data-acquirer-allowed-ids");
acquirerAllowedIds = JSON.parse(acquirerAllowedIds);

let isEnable = true;
for (let option of this.paymentOptions) {
let isEnable = true;
for (const option of this.paymentOptions) {
const acquirerId = JSON.parse(option.dataset.providerId);
isEnable = true;
if (acquirerAllowedIds) {
isEnable = acquirerAllowedIds.includes(acquirerId);
isEnable = acquirerAllowedIds.includes(acquirerId);
}
this._setEnablePaymentOption(option, isEnable);
}
Expand Down

0 comments on commit c0ca79c

Please sign in to comment.