diff --git a/packages/features/schedules/lib/use-schedule/useSchedule.ts b/packages/features/schedules/lib/use-schedule/useSchedule.ts index 6e756ec2b1..b590a48c1a 100644 --- a/packages/features/schedules/lib/use-schedule/useSchedule.ts +++ b/packages/features/schedules/lib/use-schedule/useSchedule.ts @@ -52,7 +52,7 @@ export const useSchedule = ({ : null; const skipContactOwner = searchParams ? searchParams.get("cal.skipContactOwner") === "true" : false; const _cacheParam = searchParams?.get("cal.cache"); - const shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined; + const _shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined; const utils = trpc.useUtils(); const routingFormResponseIdParam = searchParams?.get("cal.routingFormResponseId"); const email = searchParams?.get("email"); @@ -80,7 +80,7 @@ export const useSchedule = ({ teamMemberEmail, routedTeamMemberIds, skipContactOwner, - shouldServeCache, + _shouldServeCache, routingFormResponseId, email, }; diff --git a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx index 6902cd6335..9e211a5b53 100644 --- a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx +++ b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx @@ -278,7 +278,7 @@ export const BookerPlatformWrapper = ( const [routingParams, setRoutingParams] = useState<{ routedTeamMemberIds?: number[]; - shouldServeCache?: boolean; + _shouldServeCache?: boolean; skipContactOwner?: boolean; isBookingDryRun?: boolean; }>({}); @@ -292,14 +292,14 @@ export const BookerPlatformWrapper = ( const skipContactOwner = searchParams.get("cal.skipContactOwner") === "true"; const _cacheParam = searchParams?.get("cal.cache"); - const shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined; + const _shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined; const isBookingDryRun = searchParams?.get("cal.isBookingDryRun")?.toLowerCase() === "true" || searchParams?.get("cal.sandbox")?.toLowerCase() === "true"; setRoutingParams({ ...(skipContactOwner ? { skipContactOwner } : {}), ...(routedTeamMemberIds ? { routedTeamMemberIds } : {}), - ...(shouldServeCache ? { shouldServeCache } : {}), + ...(_shouldServeCache ? { _shouldServeCache } : {}), ...(isBookingDryRun ? { isBookingDryRun } : {}), }); }, [routingFormSearchParams]);