diff --git a/src/components/TransactionFeeEIP1559.tsx b/src/components/TransactionFeeEIP1559.tsx index a5821177cd4..f48e85e78cf 100644 --- a/src/components/TransactionFeeEIP1559.tsx +++ b/src/components/TransactionFeeEIP1559.tsx @@ -71,7 +71,7 @@ export const TransactionFeeEIP1559 = ({ avgFeeFiat, maxFee, maxFeeFiat, - hasFiatValue + hasSignificantFiatValue } = calculateMinMaxFee({ baseFee, baseAssetRate, maxFeePerGas, maxPriorityFeePerGas, gasLimit }); return ( @@ -162,7 +162,7 @@ export const TransactionFeeEIP1559 = ({ - {hasFiatValue ? ( + {hasSignificantFiatValue ? ( {translateRaw('CUSTOMIZED_TOTAL_FEE')}{' '} - {hasFiatValue && `(${avgFee.toFixed(6)} ${baseAsset.ticker})`} + {hasSignificantFiatValue && `(${avgFee.toFixed(6)} ${baseAsset.ticker})`} - {hasFiatValue ? ( + {hasSignificantFiatValue ? ( ) : ( )} {' - '} - {hasFiatValue ? ( + {hasSignificantFiatValue ? ( 0 to >=0.01 because 0.01 is the lowest fiat value we show in the UI + const hasSignificantFiatValue = maxFeeFiat.gte(0.01); const minMaxFee = viewableBaseFee && @@ -45,7 +46,7 @@ export const calculateMinMaxFee = ({ avgFeeFiat, maxFee, maxFeeFiat, - hasFiatValue, + hasSignificantFiatValue, viewableBaseFee }; };