Skip to content

Commit ff9ee39

Browse files
authored
Fix: Customer details are incorrect after opening customer search in order creation (#16055)
2 parents 601fb61 + 1cae605 commit ff9ee39

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Modules/Sources/Yosemite/Model/Storage/Customer+ReadOnlyConvertible.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,18 @@ extension Storage.Customer: ReadOnlyConvertible {
8080
shippingFirstName = firstName
8181
shippingLastName = lastName
8282
shippingEmail = email
83+
shippingCity = customer.city
84+
shippingState = customer.region
85+
shippingPostcode = customer.postcode
86+
shippingCountry = customer.country
8387

8488
billingFirstName = firstName
8589
billingLastName = lastName
8690
billingEmail = email
91+
billingCity = customer.city
92+
billingState = customer.region
93+
billingPostcode = customer.postcode
94+
billingCountry = customer.country
8795
}
8896

8997
/// Returns a ReadOnly (`Networking.Customer`) version of the `Storage.Customer`

0 commit comments

Comments
 (0)