From 45f5d844292f0f9f6611ab6a4aa3077a80e53d43 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Fri, 18 Oct 2024 11:23:03 +0200 Subject: [PATCH] Remove extra space & refactor variable assignment --- resources/js/mollieBlockIndex.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/mollieBlockIndex.js b/resources/js/mollieBlockIndex.js index d6146439..fdfaa014 100644 --- a/resources/js/mollieBlockIndex.js +++ b/resources/js/mollieBlockIndex.js @@ -49,7 +49,7 @@ import ApplePayButtonComponent from './blocks/ApplePayButtonComponent' gatewayData.forEach(item => { let register = () => registerPaymentMethod(molliePaymentMethod(useEffect, ajaxUrl, filters, gatewayData, availableGateways, item, jQuery, requiredFields, isCompanyFieldVisible, isPhoneFieldVisible)); if (item.name === 'mollie_wc_gateway_applepay' && !isBlockEditor) { - const isExpressEnabled = item.isExpressEnabled; + const {isExpressEnabled} = item; if ((isAppleSession && window.ApplePaySession.canMakePayments())) { register(); if (isExpressEnabled !== true) { @@ -58,8 +58,8 @@ import ApplePayButtonComponent from './blocks/ApplePayButtonComponent' const {registerExpressPaymentMethod} = wc.wcBlocksRegistry; registerExpressPaymentMethod({ name: 'mollie_wc_gateway_applepay_express', - content: < ApplePayButtonComponent />, - edit: < ApplePayButtonComponent />, + content: , + edit: , ariaLabel: 'Apple Pay', canMakePayment: () => true, paymentMethodId: 'mollie_wc_gateway_applepay',