small typo fix

This commit is contained in:
olivermrbl
2020-03-10 11:45:10 +01:00
parent 15df736e81
commit 83883dce16

View File

@@ -249,7 +249,7 @@ class ProductVariantService extends BaseService {
const region = await this.regionService_.retrieve(regionId)
// If prices already exist we need to update all prices with the same currency
if (varint.prices.length) {
if (variant.prices.length) {
let foundRegion = false
const newPrices = variant.prices.map(moneyAmount => {
if (moneyAmount.region_id === region._id) {