[BUG]: Czar leaving during selection phase crashes the game
I3uckwheat opened this issue · comments
Device used: N/A
Browser(s) used: N/A
Locally run or on official site: Production
Description
Expected Behavior
The game does not crash when the Czar leaves if they are selecting a winner when it's their turn. The existing round ends and a new Czar is selected.
Actual Behavior
The game crashes immediately when the Czar leaves.
Screen Shot/Screen Video Capture
(if applicable)
Replication Steps & Data
- Create a game with 2 or more players
- Play the game until the Czar needs to select a player
- Close the tab with the Czar selecting a winner
- Observe big red error
User Stories
- As a player I would like to be able to continue the game if the Czar leaves during the selection phase so I can keep the laughs rolling
Acceptance Criteria
Criteria needed for this to work as intended in the user story.
- Game does not crash
- Game goes into a new selection phase, throwing out the cards the players have submitted.