final POC

This commit is contained in:
magdo
2025-11-24 23:28:57 +01:00
parent ce02f55a99
commit 6b3446e9b6
49 changed files with 4634 additions and 4620 deletions
@@ -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()