Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Sep 12, 2023
1 parent ef57baf commit 682cefe
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions deploy-web/src/queries/useGrantsQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ async function getAllowancesIssued(apiEndpoint: string, address: string) {
if (!address) return null;

const response = await axios.get(ApiUrlService.allowancesIssued(apiEndpoint, address));
// const filteredGrants = response.data.grants.filter(
// x =>
// x.authorization["@type"] === "/akash.deployment.v1beta2.DepositDeploymentAuthorization" ||
// x.authorization["@type"] === "/akash.deployment.v1beta3.DepositDeploymentAuthorization"
// );

return response.data.allowances;
}
Expand All @@ -67,11 +62,6 @@ async function getAllowancesGranted(apiEndpoint: string, address: string) {
if (!address) return null;

const response = await axios.get(ApiUrlService.allowancesGranted(apiEndpoint, address));
// const filteredGrants = response.data.grants.filter(
// x =>
// x.authorization["@type"] === "/akash.deployment.v1beta2.DepositDeploymentAuthorization" ||
// x.authorization["@type"] === "/akash.deployment.v1beta3.DepositDeploymentAuthorization"
// );

return response.data.allowances;
}
Expand Down

0 comments on commit 682cefe

Please sign in to comment.