Update the shipping option for subscriptions on address change

This commit is contained in:
Narek Zakarian 2024-06-03 15:27:01 +04:00
parent ac42b18592
commit 4967c472e7
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 15 additions and 2 deletions

View file

@ -106,7 +106,6 @@ export const handleShippingAddressChange = async (data, actions, config) => {
})
})
if (!config.data_client_id.has_subscriptions) {
const res = await fetch(config.ajax.update_shipping.endpoint, {
method: 'POST',
credentials: 'same-origin',
@ -121,7 +120,6 @@ export const handleShippingAddressChange = async (data, actions, config) => {
if (!json.success) {
throw new Error(json.data.message);
}
}
} catch (e) {
console.error(e);