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 =
|
proc getNetworkColor(self: Module, shortName: string): string =
|
||||||
let networks = self.controller.getCurrentNetworks()
|
let networks = self.controller.getCurrentNetworks()
|
||||||
for network in networks:
|
for network in networks:
|
||||||
if cmpIgnoreCase(network.chainName, shortName) == 0:
|
if cmpIgnoreCase(network.shortName, shortName) == 0:
|
||||||
return network.chainColor
|
return network.chainColor
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ proc getLayer1NetworkChainId*(self: Module): int =
|
||||||
method getNetworkChainId*(self: Module, shortName: string): int =
|
method getNetworkChainId*(self: Module, shortName: string): int =
|
||||||
let networks = self.controller.getCurrentNetworks()
|
let networks = self.controller.getCurrentNetworks()
|
||||||
for network in networks:
|
for network in networks:
|
||||||
if cmpIgnoreCase(network.chainName, shortName) == 0:
|
if cmpIgnoreCase(network.shortName, shortName) == 0:
|
||||||
return network.chainId
|
return network.chainId
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue