Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/app/games/image-matching/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MatchingCardContent[]>([])
Expand Down