diff --git a/backend/src/pokers/poker-room.ts b/backend/src/pokers/poker-room.ts index 4aa06d9..d64fa3d 100644 --- a/backend/src/pokers/poker-room.ts +++ b/backend/src/pokers/poker-room.ts @@ -465,6 +465,7 @@ export class PokerRoom { * @returns {void} */ public newStory( name = "" ): void { + // If the averages is not a number, like "coffee", don't add to the history. if ( typeof this.currentStory.voteAverage === "number" ) { // Save the current story to the history. this.history.push( this.currentStory );