diff --git a/src/app/modules/main/wallet_section/filter.nim b/src/app/modules/main/wallet_section/filter.nim index 7d29831366..e569b528bf 100644 --- a/src/app/modules/main/wallet_section/filter.nim +++ b/src/app/modules/main/wallet_section/filter.nim @@ -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() \ No newline at end of file