Only use country if part of a region (#1183)
This commit is contained in:
committed by
GitHub
parent
1cfeb5dbd8
commit
ecc5bdd362
@@ -25,7 +25,7 @@ export default {
|
||||
})
|
||||
|
||||
// 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.country_code = country.iso_2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user