From c8fdb817ad409479434d879df87ac01657bb00a8 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 1 Sep 2020 15:07:02 +0200 Subject: [PATCH] Implemented updating displayed transactions after retrieving all transactions --- .../BankingiOSApp/ui/views/AccountTransactionsDialog.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift index 119bca73..cdc27887 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift @@ -177,7 +177,10 @@ struct AccountTransactionsDialog: View { self.haveAllTransactionsBeenFetched = self.accountsForWhichNotAllTransactionsHaveBeenFetched.isEmpty self.showFetchAllTransactionsOverlay = self.accountsForWhichNotAllTransactionsHaveBeenFetched.isNotEmpty - if response.isSuccessful == false { + if response.isSuccessful { + self.filterTransactions(self.searchText) + } + else if response.userCancelledAction == false { self.errorMessage = Message(title: Text("Could not fetch all transactions"), message: Text("Could not fetch all transactions for \(response.bankAccount.displayName). Error message from your bank: \(response.errorToShowToUser ?? "").")) } }