web/satellite: don't make billing API requests if billing is disabled

Removed billing API calls on all project dashboard if billing is disabled.

Change-Id: Ia3407c811e599f40670b97e1c2ad9a8f661c0e2a
This commit is contained in:
Vitalii 2023-10-27 18:53:08 +03:00
parent 4f07994bfb
commit 539253f646

View File

@ -151,7 +151,7 @@ function onViewChangeClicked(view: string): void {
}
onMounted(async () => {
if (!configStore.state.config.nativeTokenPaymentsEnabled) {
if (!(configStore.state.config.nativeTokenPaymentsEnabled && configStore.state.config.billingFeaturesEnabled)) {
return;
}