diff --git a/src/components/Navbar/WalletConnectionAlert.tsx b/src/components/Navbar/WalletConnectionAlert.tsx index 24d986e89..8ed424dcb 100644 --- a/src/components/Navbar/WalletConnectionAlert.tsx +++ b/src/components/Navbar/WalletConnectionAlert.tsx @@ -15,7 +15,7 @@ const WalletConnectionAlert: FC<{ chainId?: number }> = ({ account, chainId }) => { const [hideAlert, setHideAlert] = useState(false) - const { error } = useWeb3React() + const { error, deactivate } = useWeb3React() const [alertDescription, setAlertDescription] = useState("") const errorMessage = error?.message @@ -46,6 +46,7 @@ const WalletConnectionAlert: FC<{ const resetAlert = () => { setHideAlert(true) setAlertDescription("") + deactivate() } if (hideAlert) {