claude 1 - fixes : -/
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 24m33s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 24m33s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// src/hooks/queries/useSuggestedCorrectionsQuery.ts
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { apiClient } from '../../services/apiClient';
|
||||
import { getSuggestedCorrections } from '../../services/apiClient';
|
||||
import type { SuggestedCorrection } from '../../types';
|
||||
|
||||
/**
|
||||
@@ -16,7 +16,7 @@ export const useSuggestedCorrectionsQuery = () => {
|
||||
return useQuery({
|
||||
queryKey: ['suggested-corrections'],
|
||||
queryFn: async (): Promise<SuggestedCorrection[]> => {
|
||||
const response = await apiClient.getSuggestedCorrections();
|
||||
const response = await getSuggestedCorrections();
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.json().catch(() => ({
|
||||
|
||||
Reference in New Issue
Block a user