Fixed checking if other party's name is set

This commit is contained in:
dankl 2020-01-26 12:53:06 +01:00 committed by dankito
parent 37570da2ac
commit ea91396ccf
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ open class AccountTransactionsView(private val presenter: MainWindowPresenter) :
val contextMenu = ContextMenu() val contextMenu = ContextMenu()
contextMenu.apply { contextMenu.apply {
if (selectedItem.bankAccount.supportsTransferringMoney && selectedItem.otherPartyName != null) { if (selectedItem.bankAccount.supportsTransferringMoney && selectedItem.otherPartyName.isNullOrBlank() == false) {
item(String.format(FX.messages["account.transactions.table.context.menu.transfer.money.to"], selectedItem.otherPartyName)) { item(String.format(FX.messages["account.transactions.table.context.menu.transfer.money.to"], selectedItem.otherPartyName)) {
action { showTransferMoneyDialog(selectedItem) } action { showTransferMoneyDialog(selectedItem) }
} }