Allow possibly not finding the game object in the DB

This commit is contained in:
Oliver Akins 2022-03-13 18:31:44 -06:00
parent c5eb73ef4b
commit be3a1c97c9
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -13,7 +13,7 @@ export class GameDB {
}; };
/** Get's the Game object associated with the provided ID */ /** Get's the Game object associated with the provided ID */
public get(id: string): Game { public get(id: string): Game|undefined {
return this.games[id]; return this.games[id];
}; };