Skip to content

Commit

Permalink
fix: parse average cost onchain asset (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien authored Jun 5, 2024
1 parent 121f527 commit 28351b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/balances/index/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ async function switchView(
if (balanceType === BalanceType.Onchain && props.address != "") {
const { data: avg } = await mochiApi.getOnchainAverageCost(props.address)
avg?.forEach((d: { symbol: string; average_cost: number }) => {
averageCosts[d.symbol] = formatUsdDigit(d.average_cost)
averageCosts[d.symbol] = d.average_cost.toString()
})
}

Expand Down

0 comments on commit 28351b6

Please sign in to comment.