From b3b7a09cfbfb4b7537e158830a92a774533d6455 Mon Sep 17 00:00:00 2001 From: Lauris Skraucis Date: Wed, 24 Apr 2024 09:35:33 +0200 Subject: [PATCH] fix: booker atom not resetting month query param (#14715) Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> --- packages/platform/atoms/booker/BookerPlatformWrapper.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx index 36c6c9e9fc..db25bdadd7 100644 --- a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx +++ b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx @@ -60,6 +60,7 @@ export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) => const setBookingData = useBookerStore((state) => state.setBookingData); const setSelectedTimeslot = useBookerStore((state) => state.setSelectedTimeslot); + const setSelectedMonth = useBookerStore((state) => state.setMonth); const { data: booking } = useGetBookingForReschedule({ uid: props.rescheduleUid ?? props.bookingUid ?? "", onSuccess: (data) => { @@ -73,6 +74,7 @@ export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) => setBookerState("loading"); setSelectedDate(null); setSelectedTimeslot(null); + setSelectedMonth(null); }; }, []);