🐛 Make the state shipping address data optional in the Fastlane Block Checkout to fix non US-CA compatibility

This commit is contained in:
Daniel Dudzic 2025-07-16 12:36:53 +02:00
parent 2c59a006f5
commit 0be7304b11
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ export const populateWooFields = (
address_1: address.addressLine1,
address_2: address.addressLine2 || '',
city: address.adminArea2,
state: address.adminArea1,
state: address.adminArea1 || '',
postcode: address.postalCode,
country: address.countryCode,
phone: phoneNumber.nationalNumber,

View file

@ -32,7 +32,7 @@ export const useShippingAddressChange = ( fastlaneSdk, setShippingAddress ) => {
address_1: address.addressLine1,
address_2: address.addressLine2 || '',
city: address.adminArea2,
state: address.adminArea1,
state: address.adminArea1 || '',
postcode: address.postalCode,
country: address.countryCode,
phone: phoneNumber.nationalNumber,