If accounts are added showing "Alle Konten" instead of "Bankmeister"

This commit is contained in:
dankito 2024-10-04 09:06:24 +02:00
parent a532130fcb
commit cd8f8a32e6
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ fun BottomBar(showMenuDrawer: Boolean = true) {
val selectedAccount = transactionsFilter.selectedAccount
val title = if (selectedAccount == null) {
"Bankmeister"
if (banks.isEmpty()) {
"Bankmeister"
} else {
"Alle Konten"
}
} else if (selectedAccount.bankAccount != null) {
selectedAccount.bankAccount.displayName
} else {