Display "0" balance for a node which has no cash balances at all.

This commit is contained in:
Chris Rankin 2017-02-09 11:40:32 +00:00
parent 050b2f0151
commit 6ae8a4da83

View File

@ -103,7 +103,7 @@ class NodeTerminalView : Fragment() {
Platform.runLater {
states.value = statesInVault.first.size.toString()
transactions.value = verifiedTx.first.size.toString()
balance.value = cashBalances
balance.value = if (cashBalances.isNullOrEmpty()) "0" else cashBalances
}
} catch (e: Exception) {
log.warning("RPC failed: " + e)