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

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();
}