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

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2022-04-12 16:42:53 +02:00
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
} }