rename function

This commit is contained in:
smanylov
2026-05-18 11:51:56 +07:00
parent bfc457470c
commit 55915af9df
4 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import { fetchLastCase, ComplaintsCaseQueryParams } from '@/app/actions/violationActions';
import { fetchLastClaims, ComplaintsCaseQueryParams } from '@/app/actions/violationActions';
export interface Case {
amount: number;
@@ -31,7 +31,7 @@ export const useLastCases = (params: ComplaintsCaseQueryParams) => {
return useQuery({
queryKey: ['lastCases', params.page, params.size, params.sort_by, params.sort_direction],
queryFn: () => {
return fetchLastCase(params)
return fetchLastClaims(params)
},
select: (data: useLastCase | null) => {
if (!data) {