diff --git a/components/UI/navbar.tsx b/components/UI/navbar.tsx index 2dec4532..45cc4945 100644 --- a/components/UI/navbar.tsx +++ b/components/UI/navbar.tsx @@ -147,10 +147,11 @@ const Navbar: FunctionComponent = () => { } const switchNetwork = async () => { - if (isArgentWallet(connector)) disconnectByClick(); - else { + if (isArgentWallet(connector)) { const res = await switchChainAsync(); if (res) setIsWrongNetwork(false); + } else { + disconnectByClick(); } };