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 6af1c262..a6501cf9 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 @@ -392,8 +392,7 @@ open class BankingPresenter( if (accountsToUpdate.isNotEmpty()) { updateAccountsTransactionsAsync(accountsToUpdate, true, callback) - } - else if (allAccounts.isNotEmpty()) { + } else { // so that UI can reset its state callback?.invoke(null) } } @@ -407,8 +406,7 @@ open class BankingPresenter( if (accountsToUpdate.isNotEmpty()) { updateAccountsTransactionsAsync(accountsToUpdate, false, done) - } - else if (allAccounts.isNotEmpty()) { + } else { // so that UI can reset its state done?.invoke(null) } }