mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-16 09:34:57 +00:00
fix(wallet): no routes for saved addresses
This commit is contained in:
parent
15b2c084d2
commit
498d4c969c
@ -349,7 +349,7 @@ method getNestedCollectiblesModel*(self: Module): nested_collectibles.Model =
|
||||
proc getNetworkColor(self: Module, shortName: string): string =
|
||||
let networks = self.controller.getCurrentNetworks()
|
||||
for network in networks:
|
||||
if cmpIgnoreCase(network.chainName, shortName) == 0:
|
||||
if cmpIgnoreCase(network.shortName, shortName) == 0:
|
||||
return network.chainColor
|
||||
return ""
|
||||
|
||||
@ -363,7 +363,7 @@ proc getLayer1NetworkChainId*(self: Module): int =
|
||||
method getNetworkChainId*(self: Module, shortName: string): int =
|
||||
let networks = self.controller.getCurrentNetworks()
|
||||
for network in networks:
|
||||
if cmpIgnoreCase(network.chainName, shortName) == 0:
|
||||
if cmpIgnoreCase(network.shortName, shortName) == 0:
|
||||
return network.chainId
|
||||
return 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user