diff --git a/src/components/game/hooks/useSearchGames.ts b/src/components/game/hooks/useSearchGames.ts index 8ae267a..3b9cd96 100644 --- a/src/components/game/hooks/useSearchGames.ts +++ b/src/components/game/hooks/useSearchGames.ts @@ -24,7 +24,7 @@ export default function useSearchGames( return useQuery({ queryKey: ["game", "search", searchParameters], queryFn: async (ctx) => { - return SearchService.postSearch(parseDto(searchParameters)); + return SearchService.postSearchGames(parseDto(searchParameters)); }, placeholderData: keepPreviousData, enabled: enabled,