hotfix(medusa): shipping address updates (#454)
* hotfix(medusa): shipping address updates * fix: prettier
This commit is contained in:
@@ -611,7 +611,9 @@ class CartService extends BaseService {
|
||||
})
|
||||
|
||||
if ("region_id" in update) {
|
||||
await this.setRegion_(cart, update.region_id, update.country_code)
|
||||
const countryCode =
|
||||
update.country_code || update.shipping_address?.country_code
|
||||
await this.setRegion_(cart, update.region_id, countryCode)
|
||||
}
|
||||
|
||||
if ("customer_id" in update) {
|
||||
|
||||
Reference in New Issue
Block a user