@overmap-ai/core 1.0.58-sign-up-hotfix.0 → 1.0.58-sign-up-hotfix.1

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.
@@ -5114,12 +5114,8 @@ var __publicField = (obj, key, value) => {
5114
5114
  const initialDataUuid = uuid.v4();
5115
5115
  const timeout = 5;
5116
5116
  let timedOut = false;
5117
- let initialDataRequestFinished = false;
5118
5117
  const timeoutPromise = new Promise((_, reject) => {
5119
5118
  setTimeout(() => {
5120
- if (initialDataRequestFinished) {
5121
- return void 0;
5122
- }
5123
5119
  timedOut = true;
5124
5120
  store.dispatch(markForDeletion(uuid$1));
5125
5121
  store.dispatch(markForDeletion(initialDataUuid));
@@ -5131,15 +5127,8 @@ var __publicField = (obj, key, value) => {
5131
5127
  return void 0;
5132
5128
  }
5133
5129
  store.dispatch(setTokens(tokens));
5134
- return this.client.main.fetchInitialData(true, initialDataUuid).then(() => {
5135
- if (timedOut) {
5136
- return void 0;
5137
- }
5138
- initialDataRequestFinished = true;
5139
- store.dispatch(setLoggedIn(true));
5140
- store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
5141
- return void 0;
5142
- });
5130
+ store.dispatch(setLoggedIn(true));
5131
+ store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
5143
5132
  });
5144
5133
  return Promise.race([timeoutPromise, successPromise]);
5145
5134
  }