mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Update the shipping option for subscriptions on address change
This commit is contained in:
parent
ac42b18592
commit
4967c472e7
2 changed files with 15 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue