fix: add country code on preCartCreation

This commit is contained in:
Sebastian Rindom committed 2020-11-02 12:32:45 +01:00
1 parent a57c58e07e
commit e3faa646a7
2 files changed
+11 -2

No files matched your search

@@ -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()