Display error when game not found
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user