fix(@desktop/wallet): Wallet -> Setting -> Edit network: toast message is not displayed when reverting to default

fixes #12419
This commit is contained in:
Khushboo Mehta 2023-10-12 13:24:41 +02:00 committed by Anastasiya Semenkevich
parent 422bb2c064
commit dd8c3173f6
1 changed files with 0 additions and 3 deletions

View File

@ -173,9 +173,6 @@ proc getNetworkForCollectibles*(self: Service): NetworkDto =
proc updateNetworkEndPointValues*(self: Service, chainId: int, newMainRpcInput, newFailoverRpcUrl: string, revertToDefault: bool) = proc updateNetworkEndPointValues*(self: Service, chainId: int, newMainRpcInput, newFailoverRpcUrl: string, revertToDefault: bool) =
let network = self.getNetworkByChainId(chainId) let network = self.getNetworkByChainId(chainId)
if network.rpcURL == newMainRpcInput and network.fallbackURL == newFailoverRpcUrl:
return
if network.rpcURL != newMainRpcInput: if network.rpcURL != newMainRpcInput:
network.rpcURL = newMainRpcInput network.rpcURL = newMainRpcInput