diff --git a/packages/features/calendars/weeklyview/components/event/Empty.tsx b/packages/features/calendars/weeklyview/components/event/Empty.tsx index 2cd4cd5edd..460e4e3e5b 100644 --- a/packages/features/calendars/weeklyview/components/event/Empty.tsx +++ b/packages/features/calendars/weeklyview/components/event/Empty.tsx @@ -1,6 +1,7 @@ import { shallow } from "zustand/shallow"; import dayjs from "@calcom/dayjs"; +import { useTimePreferences } from "@calcom/features/bookings/lib"; import { classNames } from "@calcom/lib"; import { useCalendarStore } from "../../state/store"; @@ -13,6 +14,7 @@ type EmptyCellProps = GridCellToDateProps & { }; export function EmptyCell(props: EmptyCellProps) { + const timeFormat = useTimePreferences((state) => state.timeFormat); const { onEmptyCellClick, hoverEventDuration } = useCalendarStore( (state) => ({ onEmptyCellClick: state.onEmptyCellClick, @@ -40,7 +42,7 @@ export function EmptyCell(props: EmptyCellProps) { return (