tf-checkout-react 1.3.48-beta.21 → 1.3.48-beta.23

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.
@@ -7968,6 +7968,7 @@ var SeatMapContainer = function SeatMapContainer(props) {
7968
7968
  eventId = _props$event.id,
7969
7969
  symbol = _props$event.currency.symbol,
7970
7970
  tableMapEnabled = _props$event.tableMapEnabled,
7971
+ country = _props$event.country,
7971
7972
  mapContainerId = props.mapContainerId,
7972
7973
  _props$timerMessage = props.timerMessage,
7973
7974
  timerMessage = _props$timerMessage === void 0 ? '' : _props$timerMessage,
@@ -8102,7 +8103,9 @@ var SeatMapContainer = function SeatMapContainer(props) {
8102
8103
  })), [eventId]);
8103
8104
  var startTimer = React.useCallback(function (duration) {
8104
8105
  setShowTimer(true);
8105
- localStorage.setItem("reservationStart-" + eventId, String(Date.now() + duration));
8106
+ if (!localStorage.getItem("reservationStart-" + eventId)) {
8107
+ localStorage.setItem("reservationStart-" + eventId, String(Date.now() + duration));
8108
+ }
8106
8109
  }, []);
8107
8110
  var endTimer = React.useCallback(function () {
8108
8111
  localStorage.removeItem("reservationStart-" + eventId);
@@ -8293,6 +8296,9 @@ var SeatMapContainer = function SeatMapContainer(props) {
8293
8296
  }
8294
8297
  fetchSeatMapData();
8295
8298
  fetchSeatMapReservations();
8299
+ if (country) {
8300
+ localStorage.setItem('eventCountry', country);
8301
+ }
8296
8302
  var intervalId = setInterval(function () {
8297
8303
  fetchSeatMapReservations();
8298
8304
  }, 3000);