diff --git a/js/apps/account-ui/src/root/PageNav.tsx b/js/apps/account-ui/src/root/PageNav.tsx
index 002b3aca83..6f07d655c0 100644
--- a/js/apps/account-ui/src/root/PageNav.tsx
+++ b/js/apps/account-ui/src/root/PageNav.tsx
@@ -54,6 +54,7 @@ const menuItems: MenuItem[] = [
{
label: "linkedAccounts",
path: "account-security/linked-accounts",
+ isHidden: !environment.features.isLinkedAccountsEnabled,
},
],
},
@@ -115,9 +116,11 @@ function NavMenuItem({ menuItem }: NavMenuItemProps) {
isActive={isActive}
isExpanded={isActive}
>
- {menuItem.children.map((child) => (
-
- ))}
+ {menuItem.children
+ .filter((menuItem) => !menuItem.isHidden)
+ .map((child) => (
+
+ ))}
);
}