diff --git a/screen/edit-transaction/src/main/java/com/ivy/transaction/EditTransactionViewModel.kt b/screen/edit-transaction/src/main/java/com/ivy/transaction/EditTransactionViewModel.kt index c568f04b1f..775eec5f37 100644 --- a/screen/edit-transaction/src/main/java/com/ivy/transaction/EditTransactionViewModel.kt +++ b/screen/edit-transaction/src/main/java/com/ivy/transaction/EditTransactionViewModel.kt @@ -856,10 +856,9 @@ class EditTransactionViewModel @Inject constructor( } val exRate = exchangeRate - ?: if (customExchangeRateState.showCard && - toAccCurrencyCode == customExchangeRateState.toCurrencyCode && - fromAccCurrencyCode == customExchangeRateState.fromCurrencyCode && - !resetRate + ?: if ( + customExchangeRateState.showCard && toAccCurrencyCode == customExchangeRateState.toCurrencyCode && + fromAccCurrencyCode == customExchangeRateState.fromCurrencyCode && !resetRate ) { customExchangeRateState.exchangeRate } else {