From ffb0d5abb3379b77f19b376fd697238d22cb5e39 Mon Sep 17 00:00:00 2001 From: KavetiRohith Date: Thu, 14 Sep 2023 12:41:27 -0700 Subject: [PATCH] Fix: use parent_platforms as query param in useGames.ts --- src/hooks/useGames.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useGames.ts b/src/hooks/useGames.ts index 198108d..8927882 100644 --- a/src/hooks/useGames.ts +++ b/src/hooks/useGames.ts @@ -26,7 +26,7 @@ const useGames = (gameQuery: GameQuery) => { { params: { genres: gameQuery.genre?.id, - platforms: gameQuery.platform?.id, + parent_platforms: gameQuery.platform?.id, ordering: gameQuery.sortOrder, search: gameQuery.searchQuery, page: gameQuery.page,