Skip to content

Commit

Permalink
don't show booking link if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Feb 23, 2025
1 parent b009587 commit fb2a144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const baseItems: Array<MenuItem> = [{ title: t.menu.account, href: '/account', Icon: UserRound }];
const customerItems: Array<MenuItem> = [
{ title: t.menu.connections, href: '/routing', Icon: ChevronsRight },
{ title: t.menu.bookings, href: '/bookings', Icon: TicketCheck }
...(data.isLoggedIn ? [{ title: t.menu.bookings, href: '/bookings', Icon: TicketCheck }] : [])
];
const taxiOwnerItems: Array<MenuItem> = [
{ title: t.menu.availability, href: '/taxi/availability', Icon: CarTaxiFront },
Expand Down

0 comments on commit fb2a144

Please sign in to comment.