diff --git a/packages/features/bookings/Booker/components/Header.tsx b/packages/features/bookings/Booker/components/Header.tsx index 092b937baa..ef8e2bd4fa 100644 --- a/packages/features/bookings/Booker/components/Header.tsx +++ b/packages/features/bookings/Booker/components/Header.tsx @@ -32,7 +32,7 @@ export function Header({ [setLayout] ); - if (isMobile || !enabledLayouts || enabledLayouts.length <= 1) return null; + if (isMobile || !enabledLayouts) return null; // Only reason we create this component, is because it is used 3 times in this component, // and this way we can't forget to update one of the props in all places :) @@ -42,6 +42,7 @@ export function Header({ // In month view we only show the layout toggle. if (isMonthView) { + if (enabledLayouts.length <= 1) return null; return (