Skip to content

Commit

Permalink
fix(coin): if standard to base fix should be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Aug 4, 2021
1 parent c075ab0 commit 715254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blockchain-wallet-v4/src/exchange/index.ts
Expand Up @@ -42,7 +42,7 @@ const convertCoinToCoin = ({
? new BigNumber(value).dividedBy(Math.pow(10, coinfig.precision))
: new BigNumber(value).times(Math.pow(10, coinfig.precision))

return number.toString()
return baseToStandard ? number.toFixed() : number.toFixed(0)
}

const convertCoinToFiat = ({
Expand Down

0 comments on commit 715254c

Please sign in to comment.