Return the callback to fix the shipping options update process

This commit is contained in:
Narek Zakarian 2024-07-15 19:20:35 +04:00
parent f9aa2b565d
commit f643f9e1d7
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -606,9 +606,11 @@ const PayPalComponent = ( {
} }
return ( data, actions ) => { return ( data, actions ) => {
shouldHandleShippingInPayPal() let shippingAddressChange = shouldHandleShippingInPayPal()
? handleShippingAddressChange( data, actions ) ? handleShippingAddressChange( data, actions )
: null; : null;
return shippingAddressChange;
}; };
}; };