@scopetickets/checkout 0.6.0 → 0.6.1

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/dist/index.cjs CHANGED
@@ -8524,7 +8524,7 @@ function param(value) {
8524
8524
  }
8525
8525
 
8526
8526
  // src/version.ts
8527
- var CHECKOUT_VERSION = "0.6.0";
8527
+ var CHECKOUT_VERSION = "0.6.1";
8528
8528
 
8529
8529
  // src/data/useCheckoutEvents.ts
8530
8530
  function useCheckoutEvents(observed, { applicationKey, inventories, onEvent, logger = browserLogger }) {
@@ -10544,7 +10544,7 @@ function cartLines(items, context = {}) {
10544
10544
  // ../checkout-core/src/domain/promo.ts
10545
10545
  function promoSaved(cart, currency) {
10546
10546
  if (currency === void 0) return null;
10547
- const saved = cart.DiscountAmount;
10547
+ const saved = cart.PromoSavingAmount;
10548
10548
  if (typeof saved !== "number" || !Number.isFinite(saved) || saved <= 0) return null;
10549
10549
  return formatMoney(saved, currency);
10550
10550
  }