Display error when game not found

This commit is contained in:
Gavin McDonald
2025-04-15 08:56:10 -04:00
parent 6359784f3b
commit 00e878282b
5 changed files with 57 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ export default class GameStore {
}
joinGame(gameID: string, playerID: string): GameUpdate {
const game = this.getGame(gameID) || this.createGame();
const game = this.getGame(gameID);
game.players.add(playerID);
game.lastUpdated = Date.now();