Fix UI jank a bit
This commit is contained in:
parent
73c7d3efed
commit
3d6081823c
18 changed files with 193 additions and 87 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue