fix(@wallet): all highlight

fixes #12492
This commit is contained in:
Anthony Laibe 2023-10-24 10:14:52 +02:00
parent 466b57a536
commit 5c4dd60f1e
1 changed files with 1 additions and 4 deletions

View File

@ -27,10 +27,7 @@ proc `$`*(self: Filter): string =
proc setFillterAllAddresses*(self: Filter) = proc setFillterAllAddresses*(self: Filter) =
self.allAddresses = true self.allAddresses = true
var allAccounts = self.controller.getWalletAccounts()
var accountsExclWatchAccs = allAccounts.filter(a => not a.hideFromTotalBalance)
if allAccounts.len != accountsExclWatchAccs.len:
self.allAddresses = false
self.addresses = self.controller.getWalletAccounts().filter(a => not a.hideFromTotalBalance).map(a => a.address) self.addresses = self.controller.getWalletAccounts().filter(a => not a.hideFromTotalBalance).map(a => a.address)
proc setAddress*(self: Filter, address: string) = proc setAddress*(self: Filter, address: string) =