From e748d3e2522974619aaab711e0e6db9223894955 Mon Sep 17 00:00:00 2001 From: Lauris Skraucis Date: Thu, 23 Jan 2025 17:38:06 +0100 Subject: [PATCH] fix: AvailabilitySettings and Booker atom time zones (#18833) --- packages/platform/atoms/hooks/useGetCityTimezones.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/platform/atoms/hooks/useGetCityTimezones.ts b/packages/platform/atoms/hooks/useGetCityTimezones.ts index b00de934ac..0e2c28f29c 100644 --- a/packages/platform/atoms/hooks/useGetCityTimezones.ts +++ b/packages/platform/atoms/hooks/useGetCityTimezones.ts @@ -9,12 +9,12 @@ type Timezones = { city: string; timezone: string }[]; const useGetCityTimezones = () => { const pathname = `/timezones`; - const { isLoading, data } = useQuery>({ + const { isLoading, data } = useQuery({ queryKey: ["city-timezones"], queryFn: () => { return http?.get>(pathname).then((res) => { if (res.data.status === SUCCESS_STATUS) { - return res.data; + return res.data.data; } throw new Error(res.data.error.message); });