From b7b2f2b1cf2b135d15599b832a2a78a5d32d2b71 Mon Sep 17 00:00:00 2001 From: 2nthony Date: Wed, 27 Mar 2024 15:42:02 +0800 Subject: [PATCH] fix: switch address popup --- next/components/account.js | 4 ++-- next/components/header.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/next/components/account.js b/next/components/account.js index 9519fe41..8d0a4bb1 100644 --- a/next/components/account.js +++ b/next/components/account.js @@ -188,9 +188,8 @@ function Account({ networks }) { const Menu = ( e.stopPropagation()}> - {/*The dark connect button For Mobile only*/} {!account && ConnectWalletButton} - {/*The dark connect button For Mobile only*/} + {address && ( <> @@ -248,6 +247,7 @@ function Account({ networks }) { {showMenu && Menu} + {showConnect && } ); } diff --git a/next/components/header.js b/next/components/header.js index 9a67f46d..d1efce0a 100644 --- a/next/components/header.js +++ b/next/components/header.js @@ -76,7 +76,6 @@ export default function Header({ networks }) { return (