Updated on 2026-08-14
This commit is contained in:
parent
bad5c0ed63
commit
7257feb12d
2 changed files with 5 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue