Merge pull request #1665 from RafaelTaranto/fix/network-fee-ui

fix: NaN display on null network fee
This commit is contained in:
Rafael Taranto 2024-03-19 20:26:55 +00:00 committed by GitHub
commit 204886e858

View file

@ -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}>