From 83883dce16652dde6cf4c4809b61dc7ff6937dca Mon Sep 17 00:00:00 2001 From: olivermrbl Date: Tue, 10 Mar 2020 11:45:10 +0100 Subject: [PATCH] small typo fix --- packages/medusa/src/services/product-variant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/medusa/src/services/product-variant.js b/packages/medusa/src/services/product-variant.js index bf817a7da3..c122f7c044 100644 --- a/packages/medusa/src/services/product-variant.js +++ b/packages/medusa/src/services/product-variant.js @@ -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) {