fix(game): fix kickPlayer event to include gameId and improve reset message on player kick

This commit is contained in:
Ralex
2025-10-26 11:32:01 +01:00
parent ba29466c69
commit 2e645ae9d5
7 changed files with 18 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
"use client"
import { QuizzWithId } from "@rahoot/common/types/game"
import { STATUS } from "@rahoot/common/types/game/status"
import ManagerPassword from "@rahoot/web/components/game/create/ManagerPassword"
import SelectQuizz from "@rahoot/web/components/game/create/SelectQuizz"
import { useEvent, useSocket } from "@rahoot/web/contexts/socketProvider"
@@ -23,7 +24,7 @@ const Manager = () => {
useEvent("manager:gameCreated", ({ gameId, inviteCode }) => {
setGameId(gameId)
setStatus("SHOW_ROOM", { text: "Waiting for the players", inviteCode })
setStatus(STATUS.SHOW_ROOM, { text: "Waiting for the players", inviteCode })
router.push(`/game/manager/${gameId}`)
})