hotfix: bug related to region update with no shipping address (#415)

This commit is contained in:
Oliver Windall Juhl
2021-09-23 10:52:46 +02:00
committed by GitHub
parent a70e3ed0ae
commit 85de2039cc
4 changed files with 38 additions and 1 deletions
@@ -1083,6 +1083,9 @@ describe("CartService", () => {
id: "region",
countries: [{ iso_2: "us" }],
},
shipping_address: {
country_code: "us",
},
items: [IdMap.getId("testitem"), null],
payment_session: null,
payment_sessions: [],
+1 -1
View File
@@ -1446,7 +1446,7 @@ class CartService extends BaseService {
}
}
await addrRepo.save(updated)
await this.updateShippingAddress_(cart, updated, addrRepo)
}
// Shipping methods are determined by region so the user needs to find a