From d1dd3d9394beb879d735d8e22ce415811e9515bb Mon Sep 17 00:00:00 2001 From: adescoteaux1 Date: Fri, 5 Dec 2025 17:55:02 -0500 Subject: [PATCH] fix --- frontend/src/app/games/image-matching/page.tsx | 4 +++- .../src/components/games/WordImageMatchingGameInterface.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/games/image-matching/page.tsx b/frontend/src/app/games/image-matching/page.tsx index 1618528c..e3feac1d 100644 --- a/frontend/src/app/games/image-matching/page.tsx +++ b/frontend/src/app/games/image-matching/page.tsx @@ -39,6 +39,7 @@ function ImageMatchingGame() { const router = useRouter() const searchParams = useSearchParams() const themeId = searchParams.get('themeId') + const themeWeek = searchParams.get('themeWeek') const difficulty = searchParams.get('difficulty') const category = searchParams.get('category') const questionType = searchParams.get('questionType') @@ -58,10 +59,11 @@ function ImageMatchingGame() { const { gameContents, isLoading, error } = useGameContents({ theme_id: themeId || undefined, + theme_week: themeWeek ? Number.parseInt(themeWeek) : 1, difficulty_level: difficulty ? Number.parseInt(difficulty) : undefined, category: category as any, question_type: questionType as any, - applicable_game_types: ['multi-match'], + applicable_game_types: ['word/image matching'], }) // Get student names and session from context diff --git a/frontend/src/components/games/WordImageMatchingGameInterface.tsx b/frontend/src/components/games/WordImageMatchingGameInterface.tsx index b4337831..8d493e78 100644 --- a/frontend/src/components/games/WordImageMatchingGameInterface.tsx +++ b/frontend/src/components/games/WordImageMatchingGameInterface.tsx @@ -74,7 +74,7 @@ export default function WordImageMatchingGameInterface({ difficulty_level: difficulty ? Number.parseInt(difficulty) : undefined, category: category as any, question_type: questionType as any, - applicable_game_types: ['word/image matching'], + applicable_game_types: ['multi-match'], }) const [shuffledCards, setShuffledCards] = useState([])