From 469a942b5a73397aa827cfd0036eb7651da65a46 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Sun, 17 Aug 2025 22:38:27 +0530 Subject: [PATCH] fix: multiple booking duration isn't working (#23140) --- packages/features/bookings/components/event-meta/Duration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/features/bookings/components/event-meta/Duration.tsx b/packages/features/bookings/components/event-meta/Duration.tsx index 7e8bf9be14..4d2c8698a4 100644 --- a/packages/features/bookings/components/event-meta/Duration.tsx +++ b/packages/features/bookings/components/event-meta/Duration.tsx @@ -4,7 +4,7 @@ import { useEffect, useRef } from "react"; import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform"; import { useIsEmbed } from "@calcom/embed-core/embed-iframe"; import { useShouldShowArrows } from "@calcom/features/apps/components/AllApps"; -import { useBookerStore } from "@calcom/features/bookings/Booker/store"; +import { useBookerStoreContext } from "@calcom/features/bookings/Booker/BookerStoreProvider"; import type { BookerEvent } from "@calcom/features/bookings/types"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import classNames from "@calcom/ui/classNames"; @@ -45,7 +45,7 @@ export const EventDuration = ({ const { t } = useLocale(); const itemRefs = useRef<(HTMLLIElement | null)[]>([]); const isPlatform = useIsPlatform(); - const [selectedDuration, setSelectedDuration, state] = useBookerStore((state) => [ + const [selectedDuration, setSelectedDuration, state] = useBookerStoreContext((state) => [ state.selectedDuration, state.setSelectedDuration, state.state,