From 594877b05a0c190680c9c398c068b7b52c5e0248 Mon Sep 17 00:00:00 2001 From: Jip Date: Sat, 13 Feb 2021 15:51:06 +0100 Subject: [PATCH] Add context on logic --- backend/src/pokers/poker-room.ts | 1 + 1 file changed, 1 insertion(+) 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 );