diff --git a/package.json b/package.json index dc51333d4..6c5f95a5a 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@reduxjs/toolkit": "^1.9.0", "@rsksmart/rif-id-mnemonic": "^0.1.1", "@rsksmart/rif-relay-light-sdk": "^1.0.12", - "@rsksmart/rif-wallet-abi-enhancer": "^1.0.5", + "@rsksmart/rif-wallet-abi-enhancer": "^1.0.7", "@rsksmart/rif-wallet-adapters": "^1.0.0", "@rsksmart/rif-wallet-bitcoin": "^1.2.0", "@rsksmart/rif-wallet-core": "^1.0.2", diff --git a/src/components/token/index.tsx b/src/components/token/index.tsx index f25150533..93142acd0 100644 --- a/src/components/token/index.tsx +++ b/src/components/token/index.tsx @@ -122,7 +122,7 @@ export const TokenBalance = ({ {'<'} )} - + )} {!isNaN(Number(secondValue?.balance)) && ( diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 4cf7e1e55..1c96690be 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -20,10 +20,7 @@ export const roundBalance = (num: number, decimalPlaces?: number) => { } export const displayRoundBalance = (num: number): string => { - let rounded = roundBalance(num, 4) - if (!rounded) { - rounded = roundBalance(num, 8) - } + const rounded = roundBalance(num, 4) || roundBalance(num, 8) return rounded.toString() } diff --git a/src/screens/transactionSummary/TransactionSummaryComponent.tsx b/src/screens/transactionSummary/TransactionSummaryComponent.tsx index a3164c9cb..338fcc4da 100644 --- a/src/screens/transactionSummary/TransactionSummaryComponent.tsx +++ b/src/screens/transactionSummary/TransactionSummaryComponent.tsx @@ -225,6 +225,11 @@ export const TransactionSummaryComponent = ({ + {usdValue.symbol === '<' && ( + + {'<'} + + )}