Skip to content

Commit

Permalink
fix: AvailabilitySettings and Booker atom time zones (calcom#18833)
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry authored Jan 23, 2025
1 parent f8630ce commit e748d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/platform/atoms/hooks/useGetCityTimezones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ type Timezones = { city: string; timezone: string }[];
const useGetCityTimezones = () => {
const pathname = `/timezones`;

const { isLoading, data } = useQuery<ApiResponse<Timezones>>({
const { isLoading, data } = useQuery<Timezones>({
queryKey: ["city-timezones"],
queryFn: () => {
return http?.get<ApiResponse<Timezones>>(pathname).then((res) => {
if (res.data.status === SUCCESS_STATUS) {
return res.data;
return res.data.data;
}
throw new Error(res.data.error.message);
});
Expand Down

0 comments on commit e748d3e

Please sign in to comment.