hotfix(medusa): shipping address updates (#454)

* hotfix(medusa): shipping address updates

* fix: prettier
This commit is contained in:
Sebastian Rindom
2021-10-06 09:11:42 +02:00
committed by GitHub
parent 27ebe2aaf9
commit 55d175bda4
+3 -1
View File
@@ -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) {