Skip to content

Commit

Permalink
Merge pull request #1623 from blockchain/feat/round-pax-2-decimal
Browse files Browse the repository at this point in the history
Feat(Round PAX display to 2 decimals)
  • Loading branch information
plondon committed May 13, 2019
2 parents 3cdc5b2 + c419046 commit 68730e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
PAX: {
rate: '1000000000000000000',
symbol: 'PAX',
decimal_digits: 8,
decimal_digits: 2,
currency: 'PAX'
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-wallet-v4/src/exchange/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ const displayEtherToEther = ({ value, fromUnit, toUnit }) => {

const displayPaxToPax = ({ value, fromUnit, toUnit }) => {
return transformPaxToPax({ value, fromUnit, toUnit })
.map(Currency.coinToString)
.map(x => Currency.coinToString({ ...x, minDigits: 2, maxDigits: 2 }))
.getOrElse(DefaultDisplay)
}

Expand Down

0 comments on commit 68730e4

Please sign in to comment.