diff --git a/components/header/Drawers.tsx b/components/header/Drawers.tsx index 8af5c51..4654ea6 100644 --- a/components/header/Drawers.tsx +++ b/components/header/Drawers.tsx @@ -75,7 +75,10 @@ function Drawers({ menu, searchbar, children, platform }: Props) { localStorage.getItem("AccessToken") == "" ) { menu.items = menu.publicItems || []; - } else if (localStorage.getItem("AssociationAdmin")) { + } else if ( + localStorage.getItem("AssociationAdmin") && + localStorage.getItem("AssociationAdmin") != "" + ) { if (!menu.items.find((i) => i.name === "Admin Associação")) { menu.items[menu.items.length] = { "@type": "SiteNavigationElement",