tf-checkout-react 1.5.4 → 1.5.5

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.
@@ -11901,6 +11901,8 @@ var PreRegistration = function PreRegistration(_ref) {
11901
11901
  }),
11902
11902
  confirmModalState = _useState7[0],
11903
11903
  setConfirmModalState = _useState7[1];
11904
+ var _useState8 = React.useState({}),
11905
+ setUserData = _useState8[1];
11904
11906
  useCookieListener(X_TF_ECOMMERCE$2, function (value) {
11905
11907
  return setIsLoggedIn(Boolean(value));
11906
11908
  });
@@ -12073,6 +12075,7 @@ var PreRegistration = function PreRegistration(_ref) {
12073
12075
  onLoginSuccess(res.data);
12074
12076
  if (isWindowDefined$1) {
12075
12077
  window.localStorage.setItem('user_data', JSON.stringify(_get(profileRes, 'data')));
12078
+ setUserData(_get(profileRes, 'data'));
12076
12079
  }
12077
12080
  case 41:
12078
12081
  _context2.next = 50;