fix: fix asset balances on new accounts

This commit is contained in:
Jonathan Rainville 2021-02-24 16:24:14 -05:00 committed by Iuri Matias
parent 1a05b944a2
commit 6bd8aa9504
1 changed files with 1 additions and 0 deletions

View File

@ -215,6 +215,7 @@ proc initAccounts*(self: WalletModel) =
for account in accounts:
var acc = WalletAccount(account)
self.populateAccount(acc, "")
updateBalance(acc, self.getDefaultCurrency(), true)
self.accounts.add(acc)
proc updateAccount*(self: WalletModel, address: string) =