fix(@desktop/wallet): Wallet -> Setting -> Edit network: toast message is not displayed when reverting to default
fixes #12419
This commit is contained in:
parent
422bb2c064
commit
dd8c3173f6
|
@ -173,9 +173,6 @@ proc getNetworkForCollectibles*(self: Service): NetworkDto =
|
|||
proc updateNetworkEndPointValues*(self: Service, chainId: int, newMainRpcInput, newFailoverRpcUrl: string, revertToDefault: bool) =
|
||||
let network = self.getNetworkByChainId(chainId)
|
||||
|
||||
if network.rpcURL == newMainRpcInput and network.fallbackURL == newFailoverRpcUrl:
|
||||
return
|
||||
|
||||
if network.rpcURL != newMainRpcInput:
|
||||
network.rpcURL = newMainRpcInput
|
||||
|
||||
|
|
Loading…
Reference in New Issue