diff --git a/src/components/DaoCreator/formComponents/EstablishEssentials.tsx b/src/components/DaoCreator/formComponents/EstablishEssentials.tsx index aa917e26c..1ac5af67a 100644 --- a/src/components/DaoCreator/formComponents/EstablishEssentials.tsx +++ b/src/components/DaoCreator/formComponents/EstablishEssentials.tsx @@ -108,6 +108,13 @@ export function EstablishEssentials(props: ICreationStepProps) { }, }); + useEffect(() => { + if (chain.id !== walletChainID) { + const chainId = getChainIdFromPrefix(addressPrefix); + switchChain({ chainId }); + } + }, [chain.id, walletChainID, addressPrefix, switchChain]); + return ( <> item.selected)} onSelect={item => { setCurrentConfig(getConfigByChainId(Number(item.value))); + switchChain({ chainId: Number(item.value) }); }} title={t('networks')} isDisabled={false}