mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
fix(@desktop/wallet): index out of range when deleting wallet account issue fixed
This commit is contained in:
parent
d830624d85
commit
8ffd1194ef
@ -38,7 +38,9 @@ proc removeAddress*(self: Filter, address: string) =
|
||||
self.addresses = @[accounts[0].address]
|
||||
return
|
||||
|
||||
self.addresses.delete(self.addresses.find(address))
|
||||
let ind = self.addresses.find(address)
|
||||
if ind > -1:
|
||||
self.addresses.delete(ind)
|
||||
|
||||
proc updateNetworks*(self: Filter) =
|
||||
self.chainIds = self.controller.getEnabledChainIds()
|
Loading…
x
Reference in New Issue
Block a user