fix: booker atom not resetting month query param (#14715)

Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
This commit is contained in:
Lauris SkraucisandMorgan authored and GitHub committed 2024-04-24 07:35:33 +00:00
1 parent 60ae817f30
commit b3b7a09cfb
1 file changed
+2
@@ -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);
};
}, []);