Skip to content

Commit

Permalink
Revert "fix network select initialization"
Browse files Browse the repository at this point in the history
This reverts commit 560ceee.
  • Loading branch information
Dinu Barbu authored and Dinu Barbu committed Dec 7, 2021
1 parent e93ad22 commit d68e1ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/react-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const { ethers } = require("ethers");
*/

/// 📡 What chain are your contracts deployed to?
const defaultTargetNetwork = NETWORKS.localhost; // <------- select your target frontend network (localhost, rinkeby, xdai, mainnet)
const targetNetwork = NETWORKS.localhost; // <------- select your target frontend network (localhost, rinkeby, xdai, mainnet)

// 😬 Sorry for all the console logging
const DEBUG = true;
Expand All @@ -75,10 +75,7 @@ function App(props) {

const [injectedProvider, setInjectedProvider] = useState();
const [address, setAddress] = useState();
const selectedNetworkOption = networkOptions.includes(defaultTargetNetwork.name)
? defaultTargetNetwork.name
: networkOptions[0];
const [selectedNetwork, setSelectedNetwork] = useState(selectedNetworkOption);
const [selectedNetwork, setSelectedNetwork] = useState(networkOptions[0]);
const location = useLocation();

/// 📡 What chain are your contracts deployed to?
Expand Down

0 comments on commit d68e1ca

Please sign in to comment.