From cec2591a43a6cb40be2dbd98ce964b61d6197fb1 Mon Sep 17 00:00:00 2001 From: Iaroslav Gryshaiev Date: Fri, 27 Dec 2024 19:34:21 +0100 Subject: [PATCH] fix: disable authz request temporarily --- apps/deploy-web/src/queries/useBalancesQuery.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/deploy-web/src/queries/useBalancesQuery.ts b/apps/deploy-web/src/queries/useBalancesQuery.ts index e61d048d9..7e99a5d1e 100644 --- a/apps/deploy-web/src/queries/useBalancesQuery.ts +++ b/apps/deploy-web/src/queries/useBalancesQuery.ts @@ -17,10 +17,11 @@ async function getBalances(apiEndpoint: string, address?: string): Promise(ApiUrlService.balance(apiEndpoint, address)); - const authzBalancePromise = axios.get(ApiUrlService.granteeGrants(apiEndpoint, address)); + // const authzBalancePromise = axios.get(ApiUrlService.granteeGrants(apiEndpoint, address)); const activeDeploymentsPromise = loadWithPagination(ApiUrlService.deploymentList(apiEndpoint, address, true), "deployments", 1000); - const [balanceResponse, authzBalanceResponse, activeDeploymentsResponse] = await Promise.all([balancePromise, authzBalancePromise, activeDeploymentsPromise]); + const [balanceResponse, activeDeploymentsResponse] = await Promise.all([balancePromise, activeDeploymentsPromise]); + const authzBalanceResponse: { data: RestApiAuthzGrantsResponseType } = { data: { grants: [] } as unknown as RestApiAuthzGrantsResponseType }; // Authz Grants const deploymentGrants = authzBalanceResponse.data.grants.filter(