diff --git a/web/src/layouts/NavbarLayout/NavbarLayout.tsx b/web/src/layouts/NavbarLayout/NavbarLayout.tsx index a2c8a03..1d1f0a7 100644 --- a/web/src/layouts/NavbarLayout/NavbarLayout.tsx +++ b/web/src/layouts/NavbarLayout/NavbarLayout.tsx @@ -17,7 +17,7 @@ type NavBarLayoutProps = { } const NavBarLayout = ({ children }: NavBarLayoutProps) => { - const { hasRole } = useAuth() + const { hasRole, isAuthenticated } = useAuth() const [basket] = useState(getBasket()) return ( @@ -40,14 +40,18 @@ const NavBarLayout = ({ children }: NavBarLayoutProps) => {
{

Basket

-
  • - -

    Transactions

    - -
  • + {isAuthenticated ? ( +
  • + +

    Transactions

    + +
  • + ) : ( + <> + )}