summit-registration-lite 5.0.20-alpha.2 → 5.0.20-alpha.3

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
@@ -1605,14 +1605,11 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
1605
1605
  }
1606
1606
 
1607
1607
  case DELETE_RESERVATION_SUCCESS:
1608
- return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
1609
- reservation: null
1610
- });
1611
-
1612
1608
  case CLEAR_RESERVATION:
1613
1609
  {
1614
1610
  return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
1615
- reservation: null
1611
+ reservation: null,
1612
+ promoCode: ''
1616
1613
  });
1617
1614
  }
1618
1615
 
@@ -1622,7 +1619,8 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
1622
1619
  checkout: payload.response,
1623
1620
  reservation: null,
1624
1621
  userProfile: null,
1625
- invitation: null
1622
+ invitation: null,
1623
+ promoCode: ''
1626
1624
  });
1627
1625
  }
1628
1626
 
@@ -3765,7 +3763,10 @@ const RegistrationLite = _ref => {
3765
3763
  isActive: step === STEP_SELECT_TICKET_TYPE,
3766
3764
  allowPromoCodes: allowPromoCodes,
3767
3765
  applyPromoCode: applyPromoCode,
3768
- removePromoCode: removePromoCode,
3766
+ removePromoCode: () => {
3767
+ setFormErrors({});
3768
+ removePromoCode();
3769
+ },
3769
3770
  promoCode: promoCode,
3770
3771
  formErrors: formErrors,
3771
3772
  changeForm: ticketForm => setFormValues(registration_lite_objectSpread(registration_lite_objectSpread({}, formValues), ticketForm)),