Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baufaker committed Apr 24, 2024
1 parent 9d52177 commit f33bdbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/header/Drawers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f33bdbb

Please sign in to comment.