final POC
This commit is contained in:
@@ -17,7 +17,7 @@ const Lobby = () => {
|
||||
const navigate = useNavigate()
|
||||
const location = useLocation()
|
||||
|
||||
const [user, setUser] = useRequireAuth()
|
||||
const [user, setUser] = useRequireAuth({ redirect: false })
|
||||
|
||||
// Get game code from location state or WebSocket
|
||||
const gameCodeFromState = location.state?.gameCode
|
||||
@@ -75,6 +75,7 @@ const Lobby = () => {
|
||||
|
||||
// Auto-navigate when game starts
|
||||
useEffect(() => {
|
||||
console.log("🎮 Lobby: gameStarted changed to:", gameStarted)
|
||||
if (gameStarted) {
|
||||
console.log("🎮 Game started, navigating to /game")
|
||||
goGame()
|
||||
|
||||
Reference in New Issue
Block a user