summit-registration-lite 5.0.28-beta.0 → 5.0.28-beta.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.js CHANGED
@@ -771,7 +771,7 @@ const buildTrackEvent = (data, ticketQuantity = null, promoCode = null) => {
771
771
 
772
772
  if (promoCode) {
773
773
  eventData.coupon = promoCode;
774
- eventData.items_array[0].discount = data.cost - data.cost_with_applied_discount;
774
+ eventData.items_array[0].discount = data.cost - (data.cost_with_applied_discount || 0);
775
775
  }
776
776
 
777
777
  return eventData;