diff --git a/src/hooks/queries/useBaseQuery.ts b/src/hooks/queries/useBaseQuery.ts index 7ee0d6b..ad0554a 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) }); };