From 749a3d1de4febdccafc31c3b9fc323b2044f00d7 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 19 Mar 2024 20:24:39 +0000 Subject: [PATCH] fix: NaN display on null network fee --- new-lamassu-admin/src/pages/Transactions/DetailsCard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js index 57f077853..1cfeacc91 100644 --- a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js +++ b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js @@ -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' && (
- {cryptoFee} {tx.fiatCode} + {cryptoFee}
)}