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() { ...@@ -329,8 +329,8 @@ export default function NetworkSelector() {
{NETWORK_SELECTOR_CHAINS.map((chainId: SupportedChainId) => {NETWORK_SELECTOR_CHAINS.map((chainId: SupportedChainId) =>
isChainAllowed(connector, chainId) ? ( isChainAllowed(connector, chainId) ? (
<Row <Row
onSelectChain={(targetChainId: SupportedChainId) => { onSelectChain={async (targetChainId: SupportedChainId) => {
selectChain(targetChainId) await selectChain(targetChainId)
closeModal() closeModal()
}} }}
targetChain={chainId} 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