@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.
package/dist/overmap-core.js
CHANGED
|
@@ -5124,12 +5124,8 @@ class AuthService extends BaseApiService {
|
|
|
5124
5124
|
const initialDataUuid = v4();
|
|
5125
5125
|
const timeout = 5;
|
|
5126
5126
|
let timedOut = false;
|
|
5127
|
-
let initialDataRequestFinished = false;
|
|
5128
5127
|
const timeoutPromise = new Promise((_, reject) => {
|
|
5129
5128
|
setTimeout(() => {
|
|
5130
|
-
if (initialDataRequestFinished) {
|
|
5131
|
-
return void 0;
|
|
5132
|
-
}
|
|
5133
5129
|
timedOut = true;
|
|
5134
5130
|
store.dispatch(markForDeletion(uuid));
|
|
5135
5131
|
store.dispatch(markForDeletion(initialDataUuid));
|
|
@@ -5141,15 +5137,8 @@ class AuthService extends BaseApiService {
|
|
|
5141
5137
|
return void 0;
|
|
5142
5138
|
}
|
|
5143
5139
|
store.dispatch(setTokens(tokens));
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
return void 0;
|
|
5147
|
-
}
|
|
5148
|
-
initialDataRequestFinished = true;
|
|
5149
|
-
store.dispatch(setLoggedIn(true));
|
|
5150
|
-
store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5151
|
-
return void 0;
|
|
5152
|
-
});
|
|
5140
|
+
store.dispatch(setLoggedIn(true));
|
|
5141
|
+
store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5153
5142
|
});
|
|
5154
5143
|
return Promise.race([timeoutPromise, successPromise]);
|
|
5155
5144
|
}
|