Skip to content

Commit

Permalink
fix: disable authz request temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Dec 27, 2024
1 parent a889903 commit a1a6664
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/deploy-web/src/queries/useBalancesQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ async function getBalances(apiEndpoint: string, address?: string): Promise<Balan
const usdcIbcDenom = getUsdcDenom();

const balancePromise = axios.get<RestApiBalancesResponseType>(ApiUrlService.balance(apiEndpoint, address));
const authzBalancePromise = axios.get<RestApiAuthzGrantsResponseType>(ApiUrlService.granteeGrants(apiEndpoint, address));
// const authzBalancePromise = axios.get<RestApiAuthzGrantsResponseType>(ApiUrlService.granteeGrants(apiEndpoint, address));
const activeDeploymentsPromise = loadWithPagination<RpcDeployment[]>(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(
Expand Down

0 comments on commit a1a6664

Please sign in to comment.