Skip to content

Commit

Permalink
Remove extra space & refactor variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 18, 2024
1 parent 35f7b10 commit 45f5d84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/mollieBlockIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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: <ApplePayButtonComponent />,
edit: <ApplePayButtonComponent />,
ariaLabel: 'Apple Pay',
canMakePayment: () => true,
paymentMethodId: 'mollie_wc_gateway_applepay',
Expand Down

0 comments on commit 45f5d84

Please sign in to comment.