Skip to content

Commit

Permalink
refactor: booker atom unmount reset duration query param (#14766)
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry committed Apr 26, 2024
1 parent 0650898 commit c28870e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/platform/atoms/booker/BookerPlatformWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type BookerPlatformWrapperAtomProps = Omit<BookerProps, "entity"> & {
export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) => {
const [bookerState, setBookerState] = useBookerStore((state) => [state.state, state.setState], shallow);
const setSelectedDate = useBookerStore((state) => state.setSelectedDate);
const setSelectedDuration = useBookerStore((state) => state.setSelectedDuration);
const setBookingData = useBookerStore((state) => state.setBookingData);
const bookingData = useBookerStore((state) => state.bookingData);

Expand All @@ -76,6 +77,7 @@ export const BookerPlatformWrapper = (props: BookerPlatformWrapperAtomProps) =>
setSelectedDate(null);
setSelectedTimeslot(null);
setSelectedMonth(null);
setSelectedDuration(null);
};
}, []);

Expand Down

0 comments on commit c28870e

Please sign in to comment.