Merge pull request #2947

333c9ee main: update balance only when wallet is synced (rating89us)
This commit is contained in:
luigi1111 2020-06-19 16:13:48 -05:00
commit c32e11d3e8
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -416,7 +416,7 @@ ApplicationWindow {
var balance = "?.??";
var balanceU = "?.??";
if(!hideBalanceForced && !persistentSettings.hideBalance){
if(!hideBalanceForced && !persistentSettings.hideBalance && appWindow.walletSynced){
balance = walletManager.displayAmount(currentWallet.balance());
balanceU = walletManager.displayAmount(currentWallet.unlockedBalance());
}