Skip to content

Commit

Permalink
Update HeaderMenu.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppetm committed Jan 1, 2024
1 parent 623f587 commit 1ecd075
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/Header/HeaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ const HeaderMenu = () => {
};

const getHref = (item: ItemsKeys) => {
if (item === "home") return "/";

return item;
};

Expand All @@ -117,7 +115,7 @@ const HeaderMenu = () => {
>
{Object.values(ItemsKeys).map((x, _i) => (
<PivotItem
headerButtonProps={{ href: getHref(x) }}
headerButtonProps={{ href: x === "home" ? "/" : `/${getHref(x)}` }}
headerText={texts.get(x)}
itemKey={x}
key={x}
Expand Down

0 comments on commit 1ecd075

Please sign in to comment.