Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-22 13:38:56 +03:00
parent bad5c0ed63
commit 7257feb12d
2 changed files with 5 additions and 3 deletions

View file

@ -284,7 +284,9 @@ internal class SwapInteractorImpl @Inject constructor(
TokenWithBalance(
token = it,
tokenBalanceData = TokenBalanceData(
amount = balance?.let { amount -> amountFormatter.formatSwapAmountToUI(amount, "") },
amount = balance?.let { amount ->
amountFormatter.formatSwapAmountToUI(amount, it.symbol)
},
amountEquivalent = balance?.value?.toFiatString(
rates[it.id]?.toBigDecimal() ?: BigDecimal.ZERO,
appCurrency.symbol,

View file

@ -181,13 +181,13 @@ private fun TokenItem(token: TokenToSelect, network: Network, onTokenClick: () -
modifier = Modifier.padding(start = TangemTheme.dimens.spacing8),
) {
Text(
text = token.addedTokenBalanceData.amount ?: "",
text = token.addedTokenBalanceData.amountEquivalent.orEmpty(),
style = TangemTheme.typography.subtitle1,
color = TangemTheme.colors.text.primary1,
)
SpacerW2()
Text(
text = token.addedTokenBalanceData.amountEquivalent ?: "",
text = token.addedTokenBalanceData.amount.orEmpty(),
style = TangemTheme.typography.caption,
color = TangemTheme.colors.text.tertiary,
)