Skip to content

Commit

Permalink
fix: Invert condition to disable correct nav items (#4323)
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan authored Oct 7, 2024
1 parent ca3c779 commit 8e42093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sidebar/SidebarNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Navigation = (): ReactElement => {
const enabledNavItems = useMemo(() => {
return safe.deployed
? visibleNavItems
: visibleNavItems.filter((item) => undeployedSafeBlockedRoutes.includes(item.href))
: visibleNavItems.filter((item) => !undeployedSafeBlockedRoutes.includes(item.href))
}, [safe.deployed, visibleNavItems])

const getBadge = (item: NavItem) => {
Expand Down

0 comments on commit 8e42093

Please sign in to comment.