Skip to content

Scheduling infrastructure for absolutely everyone.

fix: incorrect slot duration when rescheduling bookings (#23290)

Sahitya Chandracbc27a78ee84
diff --git a/packages/features/bookings/Booker/store.ts b/packages/features/bookings/Booker/store.ts
index ac95db747d2..fba42cead2c 100644
--- a/packages/features/bookings/Booker/store.ts
+++ b/packages/features/bookings/Booker/store.ts
@@ -370,18 +370,8 @@ export const createBookerStore = () =>
// if the user reschedules a booking right after the confirmation page.
// In that case the time would still be store in the store, this way we
// force clear this.
- // Also, fetch the original booking duration if user is rescheduling and
- // update the selectedDuration
if (rescheduleUid && bookingData) {
set({ selectedTimeslot: null });
- const originalBookingLength = dayjs(bookingData?.endTime).diff(
- dayjs(bookingData?.startTime),
- "minutes"
- );
- set({ selectedDuration: originalBookingLength });
- if (!isPlatform || allowUpdatingUrlParams) {
- updateQueryParam("duration", originalBookingLength ?? "");
- }
}
if (month) set({ month });