Skip to content

Commit 49c1834

Browse files
authored
fix (#295)
1 parent 6e4a832 commit 49c1834

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/src/app/games/image-matching/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function ImageMatchingGame() {
3939
const router = useRouter()
4040
const searchParams = useSearchParams()
4141
const themeId = searchParams.get('themeId')
42+
const themeWeek = searchParams.get('themeWeek')
4243
const difficulty = searchParams.get('difficulty')
4344
const category = searchParams.get('category')
4445
const questionType = searchParams.get('questionType')
@@ -58,10 +59,11 @@ function ImageMatchingGame() {
5859

5960
const { gameContents, isLoading, error } = useGameContents({
6061
theme_id: themeId || undefined,
62+
theme_week: themeWeek ? Number.parseInt(themeWeek) : 1,
6163
difficulty_level: difficulty ? Number.parseInt(difficulty) : undefined,
6264
category: category as any,
6365
question_type: questionType as any,
64-
applicable_game_types: ['multi-match'],
66+
applicable_game_types: ['word/image matching'],
6567
})
6668

6769
// Get student names and session from context

frontend/src/components/games/WordImageMatchingGameInterface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function WordImageMatchingGameInterface({
7474
difficulty_level: difficulty ? Number.parseInt(difficulty) : undefined,
7575
category: category as any,
7676
question_type: questionType as any,
77-
applicable_game_types: ['word/image matching'],
77+
applicable_game_types: ['multi-match'],
7878
})
7979

8080
const [shuffledCards, setShuffledCards] = useState<MatchingCardContent[]>([])

0 commit comments

Comments
 (0)