@lancom/shared 0.0.445 → 0.0.446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,7 +175,8 @@ export default {
175
175
  usedSimpleProducts = usedSimpleProducts.filter(c => c.size._id === this.value?.size?._id);
176
176
  }
177
177
  const simpleProduct = usedSimpleProducts[0] || this.usedSimpleProducts[0] || this.defaultSimpleProduct;
178
- usedSimpleProducts = simpleProduct ? [{ ...simpleProduct, amount: simpleProduct.amount || 1 }] : [];
178
+ const amount = this.value?.quantity || simpleProduct.amount || 1;
179
+ usedSimpleProducts = simpleProduct ? [{ ...simpleProduct, amount }] : [];
179
180
  }
180
181
  const entities = getProductsForCalculatePricing(this.product, usedSimpleProducts);
181
182
  const payload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.445",
3
+ "version": "0.0.446",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {