diff --git a/packages/features/bookings/Booker/store.ts b/packages/features/bookings/Booker/store.ts index 2a9e187ee1..fb650cea55 100644 --- a/packages/features/bookings/Booker/store.ts +++ b/packages/features/bookings/Booker/store.ts @@ -209,6 +209,10 @@ export const useBookerStore = create((set, get) => ({ }, month: getQueryParam("month") || getQueryParam("date") || dayjs().format("YYYY-MM"), setMonth: (month: string | null) => { + if (!month) { + removeQueryParam("month"); + return; + } set({ month, selectedTimeslot: null }); updateQueryParam("month", month ?? ""); get().setSelectedDate(null);