tf-checkout-react 1.3.48-beta.28 → 1.3.48-beta.29

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.
@@ -4168,6 +4168,11 @@ var PaymentContainer = function PaymentContainer(_ref) {
4168
4168
  if (paymentSuccessResponse.status === 200) {
4169
4169
  handlePayment(paymentSuccessResponse);
4170
4170
  setPaymentIsLoading(false);
4171
+ // clear seat-map related data from localStorage
4172
+ localStorage.removeItem('reservationData');
4173
+ localStorage.removeItem("reservationStart-" + eventId);
4174
+ localStorage.removeItem('ownReservations');
4175
+ localStorage.removeItem('tierId');
4171
4176
  }
4172
4177
  _context3.next = 22;
4173
4178
  break;
@@ -4560,13 +4565,6 @@ var ConfirmationContainer = function ConfirmationContainer(_ref) {
4560
4565
  };
4561
4566
  var hash = dataDecoded.hash;
4562
4567
  var eventId = (data == null ? void 0 : data.product_id) || '';
4563
- // clear seat-map related data from localStorage
4564
- React.useEffect(function () {
4565
- localStorage.removeItem('reservationData');
4566
- localStorage.removeItem("reservationStart-" + eventId);
4567
- localStorage.removeItem('ownReservations');
4568
- localStorage.removeItem('tierId');
4569
- }, [eventId]);
4570
4568
  React.useEffect(function () {
4571
4569
  _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
4572
4570
  var _data$product_price, response, _data;