Only use country if part of a region (#1183)

This commit is contained in:
Oliver Windall Juhl
2022-04-12 16:42:53 +02:00
committed by GitHub
parent 1cfeb5dbd8
commit ecc5bdd362

View File

@@ -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
}