From 79b61dcb5238348960a2e7cae29c6df56769e048 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 14 Sep 2020 23:02:17 +0200 Subject: [PATCH] Fixed that banks parameter may contained only one bank --- ui/BankingiOSApp/BankingiOSApp/persistence/AppData.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/persistence/AppData.swift b/ui/BankingiOSApp/BankingiOSApp/persistence/AppData.swift index 98fb3c7d..a5627627 100644 --- a/ui/BankingiOSApp/BankingiOSApp/persistence/AppData.swift +++ b/ui/BankingiOSApp/BankingiOSApp/persistence/AppData.swift @@ -15,15 +15,15 @@ class AppData : ObservableObject { init() { - setFieldsForBanks(presenter.customers) + setFieldsForBanks() presenter.addAccountsChangedListener { banks in - self.setFieldsForBanks(banks) + self.setFieldsForBanks() } } - private func setFieldsForBanks(_ banks: [ICustomer]) { + private func setFieldsForBanks() { self.banks = presenter.customers self.banksSorted = banks.sortedByDisplayIndex()