diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt index d3021d9c..68231bbd 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt @@ -949,14 +949,16 @@ open class BankingPresenter( return TransactionsRetrievalState.AccountTypeNotSupported } - if (account.supportsRetrievingAccountTransactions == false) { - return TransactionsRetrievalState.AccountDoesNotSupportFetchingTransactions - } - + // check first if transactions already have been received and then if retrieving transactions is supported as it already occurred that + // transactions have been retrieved but account.supportsRetrievingAccountTransactions was set to false (may retrieving transactions is now not supported anymore) if (account.bookedTransactions.isNotEmpty()) { return TransactionsRetrievalState.RetrievedTransactions } + if (account.supportsRetrievingAccountTransactions == false) { + return TransactionsRetrievalState.AccountDoesNotSupportFetchingTransactions + } + if (account.retrievedTransactionsUpTo != null) { return TransactionsRetrievalState.NoTransactionsInRetrievedPeriod }