Only use country if part of a region (#1183)
This commit is contained in:
1 parent
1cfeb5dbd8
commit
ecc5bdd362
1 file changed
+1
-1
@@ -25,7 +25,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// If country exists, add it to the body of the cart creation request
|
// If country exists, add it to the body of the cart creation request
|
||||||
if (country) {
|
if (country?.region_id) {
|
||||||
req.body.region_id = country.region_id
|
req.body.region_id = country.region_id
|
||||||
req.body.country_code = country.iso_2
|
req.body.country_code = country.iso_2
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user