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