fix(nav): navigate to /arcade/room (not /arcade/rooms/{id})

Rooms are modal and use a single route /arcade/room that fetches
the user's current room. Fixed navigation for both:
- Creating a new room
- Joining an existing room

Both now navigate to /arcade/room instead of /arcade/rooms/{id}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-10-14 10:39:39 -05:00
parent 1e34d57ad6
commit 1c55f3630c

View File

@@ -80,8 +80,8 @@ export function AddPlayerButton({
})
// Close popover
setShowPopover(false)
// Navigate to the room page
router.push(`/arcade/rooms/${data.id}`)
// Navigate to the room page (singular - fetches current room)
router.push('/arcade/room')
},
onError: (error) => {
console.error('Failed to create room:', error)
@@ -112,6 +112,8 @@ export function AddPlayerButton({
}
// Close popover
setShowPopover(false)
// Navigate to the room page (singular - fetches current room)
router.push('/arcade/room')
},
}
)