hotfix: bug related to region update with no shipping address (#415)
This commit is contained in:
@@ -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: [],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user