Skip to content

Commit

Permalink
Merge pull request #1754 from Web3Auth/fix/network-referencing-chain
Browse files Browse the repository at this point in the history
Fix network referencing chain local storage
  • Loading branch information
lionellbriones authored Mar 12, 2024
2 parents 40e3cdd + 190fd70 commit dee92e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function App() {
const [chain, setChain] = useState<CHAIN_CONFIG_TYPE>(savedChain || "polygon-mumbai");

const networkChangeHandler = (network: WEB3AUTH_NETWORK_TYPE) => {
window.localStorage.setItem(STORAGE_KEY.BLOCKCHAIN, network);
window.localStorage.setItem(STORAGE_KEY.WEB3AUTH_NETWORK, network);
setWeb3AuthNetwork(network);
};

Expand Down

0 comments on commit dee92e1

Please sign in to comment.