tf-checkout-react 1.6.5-beta.1 → 1.6.5-beta.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.
@@ -6270,7 +6270,12 @@ function useLocalStorageListener(key, callback) {
6270
6270
  var newValue = localStorage.getItem(key);
6271
6271
  if (newValue !== value) {
6272
6272
  setValue(newValue);
6273
- callback(JSON.parse(newValue || ''));
6273
+ if (newValue) {
6274
+ var parsed = JSON.parse(newValue);
6275
+ if (parsed) {
6276
+ callback(parsed);
6277
+ }
6278
+ }
6274
6279
  }
6275
6280
  }, 100);
6276
6281
  return function () {
@@ -7378,23 +7383,18 @@ var TicketsContainer = function TicketsContainer(_ref) {
7378
7383
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
7379
7384
  while (1) switch (_context3.prev = _context3.next) {
7380
7385
  case 0:
7381
- _context3.prev = 0;
7382
- _context3.next = 3;
7386
+ _context3.next = 2;
7383
7387
  return getProfileData();
7384
- case 3:
7388
+ case 2:
7385
7389
  userDataResponse = _context3.sent;
7386
7390
  profileData = _get(userDataResponse, 'data');
7387
7391
  profileDataObj = setLoggedUserData(profileData);
7388
7392
  return _context3.abrupt("return", profileDataObj);
7389
- case 9:
7390
- _context3.prev = 9;
7391
- _context3.t0 = _context3["catch"](0);
7392
- throw new Error(_context3.t0);
7393
- case 12:
7393
+ case 6:
7394
7394
  case "end":
7395
7395
  return _context3.stop();
7396
7396
  }
7397
- }, _callee3, null, [[0, 9]]);
7397
+ }, _callee3);
7398
7398
  }));
7399
7399
  return function fetchUserData() {
7400
7400
  return _ref5.apply(this, arguments);