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.
@@ -7961,6 +7961,7 @@ var SeatMapContainer = function SeatMapContainer(props) {
7961
7961
  eventId = _props$event.id,
7962
7962
  symbol = _props$event.currency.symbol,
7963
7963
  tableMapEnabled = _props$event.tableMapEnabled,
7964
+ country = _props$event.country,
7964
7965
  mapContainerId = props.mapContainerId,
7965
7966
  _props$timerMessage = props.timerMessage,
7966
7967
  timerMessage = _props$timerMessage === void 0 ? '' : _props$timerMessage,
@@ -8095,7 +8096,9 @@ var SeatMapContainer = function SeatMapContainer(props) {
8095
8096
  })), [eventId]);
8096
8097
  var startTimer = useCallback(function (duration) {
8097
8098
  setShowTimer(true);
8098
- localStorage.setItem("reservationStart-" + eventId, String(Date.now() + duration));
8099
+ if (!localStorage.getItem("reservationStart-" + eventId)) {
8100
+ localStorage.setItem("reservationStart-" + eventId, String(Date.now() + duration));
8101
+ }
8099
8102
  }, []);
8100
8103
  var endTimer = useCallback(function () {
8101
8104
  localStorage.removeItem("reservationStart-" + eventId);
@@ -8286,6 +8289,9 @@ var SeatMapContainer = function SeatMapContainer(props) {
8286
8289
  }
8287
8290
  fetchSeatMapData();
8288
8291
  fetchSeatMapReservations();
8292
+ if (country) {
8293
+ localStorage.setItem('eventCountry', country);
8294
+ }
8289
8295
  var intervalId = setInterval(function () {
8290
8296
  fetchSeatMapReservations();
8291
8297
  }, 3000);