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()