Skip to content

🐛 Fix(frontend): default game selection to nonw when creating a lobby - #51

Merged
iflames1 merged 1 commit into
devfrom
fix/create-lobby-no-default-game
Sep 9, 2026
Merged

🐛 Fix(frontend): default game selection to nonw when creating a lobby#51
iflames1 merged 1 commit into
devfrom
fix/create-lobby-no-default-game

Conversation

@iatomic1

@iatomic1 iatomic1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 9, 2026 06:42
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stacks-wars Ready Ready Preview Sep 9, 2026 6:42am UTC

@iflames1
iflames1 merged commit 109bbda into dev Sep 9, 2026
3 checks passed
@iflames1
iflames1 deleted the fix/create-lobby-no-default-game branch September 9, 2026 06:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The incomplete-draft “Continue lobby” flow can now submit an empty gameId with no in-UI way to recover if the draft lacks a game, leading to a hard failure when resuming.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the lobby-creation dialog so that a game is not implicitly selected by default (instead, users must explicitly choose a game unless the dialog is invoked with a preselected gameId).

Changes:

  • Removed the automatic fallback to the first catalog game (games[0]?.id) when computing the currently selected game.
  • Removed the same fallback when submitting a “continue incomplete lobby” (paid draft resume) request.
File summaries
File Description
components/lobbies/create-lobby-dialog.tsx Removes default game fallbacks during lobby creation/resume so game selection is explicit.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 205 to +206
gameId:
incompleteDraft.gameId || selectedGame || games[0]?.id || "",
incompleteDraft.gameId || selectedGame || "",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants