Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prevetal committed Feb 14, 2024
1 parent 2329e05 commit 1c70406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const formatTokenAmount = (amount, tokenName) => {
export const formatAmountToCurrentDenom = (amount, tokenName) => {
let store = useGlobalStore()

return amount * (store.prices.find(e => e.symbol == tokenName).price / store.prices.find(e => e.symbol == store.networks[store.currentNetwork].token_name).price)
return amount * (formatTokenPrice(store.prices.find(e => e.symbol == tokenName).price) / formatTokenPrice(store.prices.find(e => e.symbol == store.networks[store.currentNetwork].token_name).price))
}


Expand Down

0 comments on commit 1c70406

Please sign in to comment.