Merge pull request #1665 from RafaelTaranto/fix/network-fee-ui
fix: NaN display on null network fee
This commit is contained in:
commit
204886e858
1 changed files with 2 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
.minus(cashInFee)
|
||||
.toFixed(2, 1) // ROUND_DOWN
|
||||
const crypto = getCryptoAmount(tx)
|
||||
const cryptoFee = getCryptoFeeAmount(tx)
|
||||
const cryptoFee = tx.fee ? `${getCryptoFeeAmount(tx)} ${tx.fiatCode}` : 'N/A'
|
||||
const exchangeRate = BigNumber(fiat)
|
||||
.div(crypto)
|
||||
.toFixed(2, 1) // ROUND_DOWN
|
||||
|
|
@ -382,7 +382,7 @@ const DetailsRow = ({ it: tx, timezone }) => {
|
|||
{tx.txClass === 'cashIn' && (
|
||||
<div className={classes.blockFee}>
|
||||
<Label>Network Fee</Label>
|
||||
{cryptoFee} {tx.fiatCode}
|
||||
{cryptoFee}
|
||||
</div>
|
||||
)}
|
||||
<div className={classes.sessionId}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue