Skip to content

Commit

Permalink
fix: NaN display on null network fee
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Apr 15, 2024
1 parent 6028bf4 commit 749a3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions new-lamassu-admin/src/pages/Transactions/DetailsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}>
Expand Down

0 comments on commit 749a3d1

Please sign in to comment.