main: fix warning

This commit is contained in:
selsta 2019-12-14 03:37:44 +01:00
parent 46227bdad0
commit 24ac001daa
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ ApplicationWindow {
console.log(">>> wallet refreshed")
// Daemon connected
leftPanel.networkStatus.connected = currentWallet.connected()
leftPanel.networkStatus.connected = currentWallet ? currentWallet.connected() : Wallet.ConnectionStatus_Disconnected
currentWallet.refreshHeightAsync();
}