From e4b46a774214b8a0a2b5f22ad5b067773cd7bd75 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 ac9fe6119..630c7e7e8 100644 --- a/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx +++ b/src/ux/requestsModal/ReviewRelayTransaction/ReviewTransactionContainer.tsx @@ -138,18 +138,19 @@ export const ReviewTransactionContainer = ({ : '0' 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,