Merge pull request #1269 from josepfo/fix/commissions-ui-rounding
fix: tx commission display value
This commit is contained in:
commit
19bfa58160
1 changed files with 3 additions and 1 deletions
|
|
@ -136,7 +136,9 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
}
|
||||
)
|
||||
|
||||
const commission = getCommission(tx).toFixed(2)
|
||||
const commission = BigNumber(getCommission(tx))
|
||||
.abs()
|
||||
.toFixed(2, 1) // ROUND_DOWN
|
||||
const commissionPercentage =
|
||||
Number.parseFloat(tx.commissionPercentage, 2) * 100
|
||||
const cashInFee = isCashIn ? Number.parseFloat(tx.cashInFee) : 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue