diff --git a/src/hooks/queries/useBaseQuery.ts b/src/hooks/queries/useBaseQuery.ts index ad0554a..bbc45bc 100644 --- a/src/hooks/queries/useBaseQuery.ts +++ b/src/hooks/queries/useBaseQuery.ts @@ -9,6 +9,6 @@ export const fetchData = async (url: string) => { export const useBaseQuery = (queryKey: any, url: string) => { return useSuspenseQuery({ queryKey, - queryFn: async () => await fetchData(url).then((res) => res.data).catch((error) => { console.log(error) + queryFn: async () => await fetchData(url).then((res) => res.data).catch((error) => { console.log(error)}), }); };