diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt index 0140a826..881a8f5f 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/BankAccount.kt @@ -42,14 +42,7 @@ open class BankAccount @JvmOverloads constructor( open val displayName: String get() { - val productName = productName ?: subAccountNumber - - if (productName != null) { - return productName + " ($identifier)" - } - - - return identifier + return productName ?: subAccountNumber ?: identifier }