Web: Deleted useless code.
This commit is contained in:
parent
bef67bb92b
commit
d702e700e6
@ -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())
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user