fix(wallet): no routes for saved addresses

This commit is contained in:
Ivan Belyakov 2024-07-09 14:30:32 +02:00 committed by IvanBelyakoff
parent 15b2c084d2
commit 498d4c969c
1 changed files with 2 additions and 2 deletions

View File

@ -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