Fix UI jank a bit

This commit is contained in:
Joey Yakimowich-Payne 2026-01-14 21:47:40 -07:00
commit 3d6081823c
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
18 changed files with 193 additions and 87 deletions

View file

@ -74,6 +74,7 @@ router.get('/:pin', (req: Request, res: Response) => {
return;
}
const gameConfig = JSON.parse(session.game_config);
res.json({
pin: session.pin,
hostPeerId: session.host_peer_id,
@ -81,6 +82,7 @@ router.get('/:pin', (req: Request, res: Response) => {
currentQuestionIndex: session.current_question_index,
quizTitle: JSON.parse(session.quiz_data).title,
playerCount: JSON.parse(session.players_data).length,
randomNamesEnabled: gameConfig.randomNamesEnabled || false,
});
} catch (err) {
console.error('Error getting game session:', err);