1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Fix RPC Url editing issue of existing network (#17451)

This commit is contained in:
ryanml 2023-01-31 18:22:47 -07:00 committed by GitHub
parent 5e863a297f
commit 83a3ce1aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -574,7 +574,7 @@ const NetworksForm = ({
const deletable = !isCurrentRpcTarget && !viewOnly && !addNewNetwork;
const stateUnchanged = stateIsUnchanged();
const chainIdErrorOnFeaturedRpcDuringEdit =
selectedNetwork?.rpcUrl && warnings.chainId && chainIdMatchesFeaturedRPC;
selectedNetwork?.rpcUrl && errors.chainId && chainIdMatchesFeaturedRPC;
const isSubmitDisabled =
hasErrors() ||
isSubmitting ||