Skip to content

Commit

Permalink
Add context on logic
Browse files Browse the repository at this point in the history
  • Loading branch information
moorscode committed Feb 13, 2021
1 parent 0be3302 commit 594877b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/pokers/poker-room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 594877b

Please sign in to comment.