feeef 0.7.4 → 0.7.5

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.
package/build/index.js CHANGED
@@ -1977,14 +1977,13 @@ var CartService = class extends NotifiableService {
1977
1977
  */
1978
1978
  updateCurrentItemOffer(offer) {
1979
1979
  if (!this.currentItem) return;
1980
- const updatedItem = { ...this.currentItem };
1981
- updatedItem.offer = offer;
1980
+ const updatedItem = { ...this.currentItem, offer };
1982
1981
  if (offer) {
1983
1982
  updatedItem.quantity = this.clampQuantityToOfferLimits(offer, this.currentItem.quantity);
1984
1983
  }
1985
- this.updateCurrentItem(updatedItem);
1984
+ this.updateCurrentItem(updatedItem, true);
1986
1985
  this.cachedSubtotal = null;
1987
- this.notifyIfChanged();
1986
+ this.notify();
1988
1987
  }
1989
1988
  /**
1990
1989
  * Sets the shipping method.