Web: Deleted useless code.

This commit is contained in:
Tatiana Lopaeva 2023-06-08 11:44:54 +03:00
parent bef67bb92b
commit d702e700e6
2 changed files with 3 additions and 14 deletions

View File

@ -92,11 +92,9 @@ class PaymentStore {
} = authStore;
const { setPayerInfo } = currentTariffStatusStore;
const { addedManagersCount } = currentQuotaStore;
const { setPortalPaymentQuotas, isLoaded } = paymentQuotasStore;
const { setPortalPaymentQuotas } = paymentQuotasStore;
const requests = [this.getSettingsPayment()];
if (!isLoaded) requests.push(setPortalPaymentQuotas());
const requests = [this.getSettingsPayment(), setPortalPaymentQuotas()];
this.isAlreadyPaid
? requests.push(this.setPaymentAccount())

View File

@ -125,16 +125,7 @@ class CurrentTariffStatusStore {
};
setPortalTariff = async () => {
let refresh = false;
if (window.location.search === "?complete=true") {
refresh = true;
}
const res = await api.portal.getPortalTariff(refresh);
if (refresh)
window.history.replaceState({}, document.title, window.location.pathname);
const res = await api.portal.getPortalTariff();
if (!res) return;