Skip to content

Commit

Permalink
Reset localStorage onload in case gateway list changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Dec 12, 2024
1 parent 2964415 commit 049407c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/mollieBlockIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ApplePayButtonEditorComponent from './blocks/ApplePayButtonEditorComponen
const {useEffect} = wp.element;
const isAppleSession = typeof window.ApplePaySession === "function"
const isBlockEditor = !!wp?.blockEditor;
localStorage.removeItem('cachedAvailableGateways');

function getCompanyField() {
let shippingCompany = shipping_address.company ?? false;
Expand Down

0 comments on commit 049407c

Please sign in to comment.