From 2b17ed79dea7380bacd7964243a34586b34f3bd8 Mon Sep 17 00:00:00 2001 From: kevinverschoor <61683999+kevinverschoor@users.noreply.github.com> Date: Fri, 12 May 2023 11:28:03 +0200 Subject: [PATCH] Autoformat & Change var name --- .../js/view/payment/method-renderer/default.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/view/frontend/web/js/view/payment/method-renderer/default.js b/view/frontend/web/js/view/payment/method-renderer/default.js index d9a4dbf6..31922392 100755 --- a/view/frontend/web/js/view/payment/method-renderer/default.js +++ b/view/frontend/web/js/view/payment/method-renderer/default.js @@ -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; },