Implemented updating displayed transactions after retrieving all transactions

This commit is contained in:
dankito 2020-09-01 15:07:02 +02:00
parent b4e712f6b8
commit c8fdb817ad
1 changed files with 4 additions and 1 deletions

View File

@ -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 ?? "")."))
}
}