tf-checkout-react 1.3.10 → 1.3.11

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.
@@ -2784,7 +2784,7 @@ var LogicRunner = function LogicRunner(_ref) {
2784
2784
  React.useEffect(function () {
2785
2785
  var fetchStates = /*#__PURE__*/function () {
2786
2786
  var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
2787
- var res, mappedStates, _mappedStates$0$value, _mappedStates$;
2787
+ var res, mappedStates, _mappedStates$find, _mappedStates$0$value, _mappedStates$, stateExists;
2788
2788
 
2789
2789
  return runtime_1.wrap(function _callee$(_context) {
2790
2790
  while (1) {
@@ -2805,7 +2805,10 @@ var LogicRunner = function LogicRunner(_ref) {
2805
2805
  setStates(mappedStates);
2806
2806
 
2807
2807
  if (prevCountry.current !== values.country) {
2808
- setFieldValue('state', (_mappedStates$0$value = (_mappedStates$ = mappedStates[0]) == null ? void 0 : _mappedStates$.value) != null ? _mappedStates$0$value : '');
2808
+ stateExists = (_mappedStates$find = mappedStates.find(function (state) {
2809
+ return state.value === values.state;
2810
+ })) == null ? void 0 : _mappedStates$find.value;
2811
+ setFieldValue('state', stateExists != null ? stateExists : (_mappedStates$0$value = (_mappedStates$ = mappedStates[0]) == null ? void 0 : _mappedStates$.value) != null ? _mappedStates$0$value : '');
2809
2812
  prevCountry.current = values.country;
2810
2813
  }
2811
2814
 
@@ -5958,7 +5961,7 @@ var tableConfig = function tableConfig(key) {
5958
5961
  body: [function (row) {
5959
5962
  return row.id;
5960
5963
  }, function (row) {
5961
- return row.date;
5964
+ return row.timezone ? moment.tz(row.date, row.timezone).format('DD MMMM YYYY') : row.date;
5962
5965
  }, function (row) {
5963
5966
  return React__default.createElement(EventInfoItem, {
5964
5967
  image: row.image,