fix: add country code on preCartCreation

This commit is contained in:
Sebastian Rindom
2020-11-02 12:32:45 +01:00
parent a57c58e07e
commit e3faa646a7
2 changed files with 11 additions and 2 deletions
@@ -26,6 +26,7 @@ export default {
// If this region exists, add it to the body of the cart creation request
if (regions[0]) {
req.body.region_id = regions[0]._id.toString()
req.body.country_code = data.country_code
}
next()