Web: Client: setTimeout was removed from thirdparty services settings

This commit is contained in:
Vladimir Khvan 2024-05-02 18:08:19 +05:00
parent f45a90f2fa
commit ddbffdc632

View File

@ -120,12 +120,10 @@ class ThirdPartyServices extends React.Component {
showLoader();
const urlParts = window.location.href.split("?");
if (urlParts.length > 1) {
setTimeout(() => {
const queryValue = urlParts[1].split("=")[1];
fetchAndSetConsumers(queryValue)
.then((isConsumerExist) => isConsumerExist && this.onModalOpen())
.finally(() => hideLoader());
}, 100);
const queryValue = urlParts[1].split("=")[1];
fetchAndSetConsumers(queryValue)
.then((isConsumerExist) => isConsumerExist && this.onModalOpen())
.finally(() => hideLoader());
} else {
getConsumers().finally(() => hideLoader());
}