Skip to content

Commit

Permalink
updating field name
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir committed Sep 25, 2023
1 parent 35bd028 commit 5453fb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ironfish-cli/src/commands/wallet/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class BalancesCommand extends IronfishCommand {
})
this.log(`Account: ${response.content.account}`)

const balancesWithAssets: AssetBalancePairs[] = []
const assetBalancePairs: AssetBalancePairs[] = []

await Promise.all(
response.content.balances.map(async (element) => {
Expand All @@ -55,7 +55,7 @@ export class BalancesCommand extends IronfishCommand {
confirmations: flags.confirmations,
})

balancesWithAssets.push({
assetBalancePairs.push({
balance: element,
asset: asset.content,
})
Expand Down Expand Up @@ -113,7 +113,7 @@ export class BalancesCommand extends IronfishCommand {
}
}

balancesWithAssets.sort((left, right) =>
assetBalancePairs.sort((left, right) =>
compareAssets(
left.asset.name,
left.asset.verification,
Expand All @@ -122,6 +122,6 @@ export class BalancesCommand extends IronfishCommand {
),
)

CliUx.ux.table(balancesWithAssets, columns, flags)
CliUx.ux.table(assetBalancePairs, columns, flags)
}
}

0 comments on commit 5453fb9

Please sign in to comment.