From b2766900be18ae68ca5fa8be039314704c1a3330 Mon Sep 17 00:00:00 2001 From: "k.verschoor@pay.nl" Date: Thu, 13 Jan 2022 11:37:11 +0100 Subject: [PATCH] Autoformat --- .../web/js/view/payment/method-renderer/default.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 5b0a4caf..75639384 100755 --- a/view/frontend/web/js/view/payment/method-renderer/default.js +++ b/view/frontend/web/js/view/payment/method-renderer/default.js @@ -43,15 +43,15 @@ define( return this; }, isVisible:function() { - var group = window.checkoutConfig.payment.showforgroup[this.item.method]; - if(group){ - if(group == 0 && customer.isLoggedIn._latestValue){ + var group = window.checkoutConfig.payment.showforgroup[this.item.method]; + if (group) { + if (group == 0 && customer.isLoggedIn) { return false; } - if(group > 0 && !customer.isLoggedIn._latestValue){ + if (group > 0 && !customer.isLoggedIn) { return false; } - if(group > 0 && group != customer.customerData.group_id){ + if (group != customer.customerData.group_id) { return false; } }