From 048e6ad9c3fd35968548d01df6ab0054a78a3a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gon=C3=A7alves?= Date: Thu, 14 Sep 2023 17:54:46 -0300 Subject: [PATCH] handle receive small amounts from dapp --- .../ReviewTransactionContainer.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx b/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx index 353c3a93a..716fe497b 100644 --- a/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx +++ b/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx @@ -170,18 +170,19 @@ export const ReviewTransactionContainer = ({ // get usd values const tokenUsd = convertToUSD(Number(value), tokenQuote) const feeUsd = convertToUSD(Number(feeValue), feeQuote) + const smallAmount = !Number(tokenUsd) && !!Number(value) return { transaction: { tokenValue: { - balance: value.toString(), - symbolType: 'icon', symbol: symbol || feeSymbol, + symbolType: 'icon', + balance: value.toString(), }, usdValue: { - balance: tokenUsd, + symbol: smallAmount ? '<' : '$', symbolType: 'usd', - symbol: '$', + balance: smallAmount ? '0.01' : tokenUsd, }, fee: { tokenValue: feeValue,