Skip to content

Commit

Permalink
Fixed wrong search service call
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamarcke committed Mar 19, 2024
1 parent dd722d1 commit 5c18520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/game/hooks/useSearchGames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function useSearchGames(
return useQuery<GameSearchResponseDto, ApiError>({
queryKey: ["game", "search", searchParameters],
queryFn: async (ctx) => {
return SearchService.postSearch(parseDto(searchParameters));
return SearchService.postSearchGames(parseDto(searchParameters));
},
placeholderData: keepPreviousData,
enabled: enabled,
Expand Down

0 comments on commit 5c18520

Please sign in to comment.