From 58f1004bdf8c5b9a8fd56cedf40e8eff31d3b3f9 Mon Sep 17 00:00:00 2001 From: 2nthony Date: Wed, 27 Mar 2024 15:47:05 +0800 Subject: [PATCH] fix: switch address popup (#1008) --- 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 (