fix(@desktop/wallet): Wallet balance is 0 when enabling multinetwork toggle

fixes y
This commit is contained in:
Khushboo Mehta 2022-06-09 17:17:47 +05:30 committed by Iuri Matias
parent 954acf0df4
commit 0e1357b78e
2 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,9 @@ method load*(self: Module) =
var args = DerivedAddressesArgs(e) var args = DerivedAddressesArgs(e)
self.view.setDerivedAddresses(args.derivedAddresses, args.error) self.view.setDerivedAddresses(args.derivedAddresses, args.error)
self.events.on(SIGNAL_WALLET_ACCOUNT_TOKENS_REBUILT) do(e:Args):
self.refreshWalletAccounts()
self.controller.init() self.controller.init()
self.view.load() self.view.load()

View File

@ -107,6 +107,8 @@ method load*(self: Module) =
self.setTotalCurrencyBalance() self.setTotalCurrencyBalance()
self.events.on(SIGNAL_WALLET_ACCOUNT_NETWORK_ENABLED_UPDATED) do(e:Args): self.events.on(SIGNAL_WALLET_ACCOUNT_NETWORK_ENABLED_UPDATED) do(e:Args):
self.setTotalCurrencyBalance() self.setTotalCurrencyBalance()
self.events.on(SIGNAL_WALLET_ACCOUNT_TOKENS_REBUILT) do(e:Args):
self.setTotalCurrencyBalance()
self.controller.init() self.controller.init()
self.view.load() self.view.load()