From 560b78cb43765ef810069138e9a6c6d793a91a2a Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 24 Jan 2024 17:34:33 +0100 Subject: [PATCH] Updated on 2026-08-14 --- .../state/factory/TokenDetailsSwapTransactionsStateConverter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsSwapTransactionsStateConverter.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsSwapTransactionsStateConverter.kt index 1bff8e17bc..fe66191de0 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsSwapTransactionsStateConverter.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/factory/TokenDetailsSwapTransactionsStateConverter.kt @@ -55,7 +55,7 @@ internal class TokenDetailsSwapTransactionsStateConverter( val toAmount = transaction.toCryptoAmount val fromAmount = transaction.fromCryptoAmount val toFiatAmount = quotes.firstOrNull { - it.rawCurrencyId == swapCurrency.fromCryptoCurrency.id.rawCurrencyId + it.rawCurrencyId == swapCurrency.toCryptoCurrency.id.rawCurrencyId }?.fiatRate?.multiply(toAmount) val fromFiatAmount = quotes.firstOrNull { it.rawCurrencyId == swapCurrency.fromCryptoCurrency.id.rawCurrencyId