hotfix(medusa): shipping address updates (#454)
* hotfix(medusa): shipping address updates * fix: prettier
This commit is contained in:
1 parent
27ebe2aaf9
commit
55d175bda4
1 file changed
+3
-1
@@ -611,7 +611,9 @@ class CartService extends BaseService {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if ("region_id" in update) {
|
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) {
|
if ("customer_id" in update) {
|
||||||
|
|||||||
Reference in new issue
Block a user