From 50b74a3e7fb5086196947ef521c2fef9c6396726 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:00:15 -0400 Subject: [PATCH] fix(wallet): show settings page/menu when no wallet is connected --- apps/deploy-web/src/components/layout/Sidebar.tsx | 2 +- apps/deploy-web/src/components/settings/SettingsContainer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/deploy-web/src/components/layout/Sidebar.tsx b/apps/deploy-web/src/components/layout/Sidebar.tsx index 3b7b214d2..5c1fa6399 100644 --- a/apps/deploy-web/src/components/layout/Sidebar.tsx +++ b/apps/deploy-web/src/components/layout/Sidebar.tsx @@ -83,7 +83,7 @@ export const Sidebar: React.FunctionComponent = ({ isMobileOpen, handleDr } ]; - if (wallet.isWalletConnected && !wallet.isManaged) { + if (!wallet.isWalletConnected || (wallet.isWalletConnected && !wallet.isManaged)) { routes.push({ title: "Settings", icon: props => , diff --git a/apps/deploy-web/src/components/settings/SettingsContainer.tsx b/apps/deploy-web/src/components/settings/SettingsContainer.tsx index 76a35278d..2a7613ed3 100644 --- a/apps/deploy-web/src/components/settings/SettingsContainer.tsx +++ b/apps/deploy-web/src/components/settings/SettingsContainer.tsx @@ -25,7 +25,7 @@ export const SettingsContainer: React.FunctionComponent = () => { const wallet = useWallet(); const router = useRouter(); - useWhen(!wallet.isWalletConnected || wallet.isManaged, () => router.push("/")); + useWhen(wallet.isManaged, () => router.push("/")); const onSelectNetworkModalClose = () => { setIsSelectingNetwork(false);