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 6d0ab40a..883adc5d 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 @@ -148,10 +148,10 @@ open class BankingPresenter( val startDate = Date() newClient.addAccountAsync { response -> - val account = response.customer - account.displayIndex = customers.size - if (response.successful) { + val account = response.customer + account.displayIndex = customers.size + addClientForAccount(account, newClient) selectedAccount(account)