Commit 733b1885 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: await selectChain before closing modal (#4354)

parent 7adbb1e0
......@@ -329,8 +329,8 @@ export default function NetworkSelector() {
{NETWORK_SELECTOR_CHAINS.map((chainId: SupportedChainId) =>
isChainAllowed(connector, chainId) ? (
<Row
onSelectChain={(targetChainId: SupportedChainId) => {
selectChain(targetChainId)
onSelectChain={async (targetChainId: SupportedChainId) => {
await selectChain(targetChainId)
closeModal()
}}
targetChain={chainId}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment