From cbc27a78ee84b46daf7449701337a2deaf89914a Mon Sep 17 00:00:00 2001 From: Sahitya Chandra Date: Wed, 3 Sep 2025 21:15:17 +0530 Subject: [PATCH] fix: incorrect slot duration when rescheduling bookings (#23290) * fix: incorrect slot duration when rescheduling bookings * chore * chore * some code refactor * chore * chore * fix --------- Co-authored-by: unknown Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> --- packages/features/bookings/Booker/store.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/features/bookings/Booker/store.ts b/packages/features/bookings/Booker/store.ts index ac95db747d..fba42cead2 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 });