Skip to content

Commit

Permalink
Autoformat & Change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinverschoor committed May 12, 2023
1 parent b0cdd15 commit 2b17ed7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions view/frontend/web/js/view/payment/method-renderer/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,17 @@ define(
var paymentOptions = window.checkoutConfig.payment.paymentoptions[this.item.method];
var message = null;
if (this.item.method == 'paynl_payment_ideal') {
message = $.mage.__('Choose your bank');
}
message = $.mage.__('Choose your bank');
}
if (this.item.method == 'paynl_payment_instore') {
message = $.mage.__('Choose the pin terminal');
message = $.mage.__('Choose the pin terminal');
}
if(message && this.showPaymentOptions() === true){
var firstArray = [];
firstArray['id'] = '';
firstArray['name'] = message;
firstArray['visibleName'] = message;
paymentOptions.unshift(firstArray);
if (message && this.showPaymentOptions() === true) {
var paymentOption = [];
paymentOption['id'] = '';
paymentOption['name'] = message;
paymentOption['visibleName'] = message;
paymentOptions.unshift(paymentOption);
}
return paymentOptions;
},
Expand Down

0 comments on commit 2b17ed7

Please sign in to comment.