From 3f109d6d3ebe0d8fcbaa6b88420aa7594973eb1a Mon Sep 17 00:00:00 2001 From: emmanuelokoye Date: Sun, 26 Dec 2021 19:44:56 +0100 Subject: [PATCH] fix for the switchNetwork function. --- packages/react-app/src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-app/src/App.jsx b/packages/react-app/src/App.jsx index c817bfe8..658acd32 100644 --- a/packages/react-app/src/App.jsx +++ b/packages/react-app/src/App.jsx @@ -365,7 +365,7 @@ function App(props) { } const switchNetwork = e => { - let value = e.target.value; + let value = e.target.innerText; if (targetNetwork.chainId !== NETWORKS[value].chainId) { window.localStorage.setItem("network", value); setTimeout(async () => {