From cbed0e77584fc6aaff05c51c00dd145b30dd500c Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 6 Aug 2020 16:06:39 +0200 Subject: [PATCH] Fixed that partially accounts have been displayed at other banks --- ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift index 87430512..46b044ff 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift @@ -24,8 +24,9 @@ struct BankListItem : View { } - ForEach(0 ..< bank.accounts.count) { accountIndex in - BankAccountListItem(account: self.bank.accounts[accountIndex]) + + ForEach(bank.accounts) { account in + BankAccountListItem(account: account) } .padding(.leading, 18) }