From 1e09eac9e073939ce3873a21f9f4ef78b0cc1a7e Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 27 Sep 2020 03:41:53 +0200 Subject: [PATCH] Removed unnecessary presenter.currencyIsoCodeOfAccounts() --- .../BankingiOSApp/ui/views/listitems/AllBanksListItem.swift | 2 +- .../BankingiOSApp/ui/views/listitems/BankListItem.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AllBanksListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AllBanksListItem.swift index ca00a751..6a126d8d 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AllBanksListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AllBanksListItem.swift @@ -20,7 +20,7 @@ struct AllBanksListItem: View { Spacer() - AmountLabel(banks.sumBalances(), presenter.currencyIsoCodeOfAccounts(accounts: presenter.allAccounts)) + AmountLabel(banks.sumBalances()) } .frame(height: 35) .background(Color.systemBackground) // make background tapable diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/BankListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/BankListItem.swift index 0a7d871e..07fe21fa 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/BankListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/BankListItem.swift @@ -20,7 +20,7 @@ struct BankListItem : View { Spacer() - AmountLabel(bank.balance, presenter.currencyIsoCodeOfAccounts(accounts: bank.accounts)) + AmountLabel(bank.balance) } .frame(height: 35) .background(Color.systemBackground) // make background tapable