Skip to content

Commit

Permalink
fix(wallet): show settings page/menu when no wallet is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Sep 30, 2024
1 parent b39b057 commit 50b74a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/deploy-web/src/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const Sidebar: React.FunctionComponent<Props> = ({ isMobileOpen, handleDr
}
];

if (wallet.isWalletConnected && !wallet.isManaged) {
if (!wallet.isWalletConnected || (wallet.isWalletConnected && !wallet.isManaged)) {
routes.push({
title: "Settings",
icon: props => <Settings {...props} />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 50b74a3

Please sign in to comment.