ng-easycommerce 0.0.618 → 0.0.619

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.
@@ -10626,8 +10626,12 @@ var ProductDetailService = /** @class */ (function () {
10626
10626
  var asociated = {};
10627
10627
  if (_this.isReady()) {
10628
10628
  asociated.stock = _this.variants[0].stock;
10629
- asociated.price = _this.variants[0].price.toString();
10630
- asociated.priceWithoutTaxes = _this.variants[0].priceWithoutTaxes.toString() || undefined;
10629
+ if (_this.variants[0].priceWithoutTaxes) {
10630
+ asociated.price = _this.variants[0].priceWithoutTaxes.toString();
10631
+ }
10632
+ else {
10633
+ asociated.price = _this.variants[0].price.toString();
10634
+ }
10631
10635
  asociated.saleprice = _this.variants[0].saleprice && _this.variants[0].saleprice.toString() || undefined;
10632
10636
  asociated.discount = ((_a = _this.variants[0]) === null || _a === void 0 ? void 0 : _a.discount) || undefined;
10633
10637
  asociated.properties = _this.variants[0].properties ? _this.beautifyProperties(_this.variants[0].properties) : undefined;