Skip to content

Commit

Permalink
fix token amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Feb 14, 2024
1 parent 97eeacf commit 77346a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/molecule/TokenAmount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (!isNEAR) {
let amount = amountWithDecimals;
if (amountWithoutDecimals !== undefined) {
amount = Big(amountWithoutDecimals)
.div(Big(10).pow(ftMetadata.decimals))
.div(Big(10).pow(ftMetadata.decimals ?? 1))
.toString();
}

Expand Down

0 comments on commit 77346a2

Please sign in to comment.