From 0a0fca6ed7d704994f052b659e7fc4d132896d20 Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Thu, 29 Dec 2022 17:17:22 -0500 Subject: [PATCH] fix display of timer params --- client/src/modules/game_creation/GameCreationStepManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/modules/game_creation/GameCreationStepManager.js b/client/src/modules/game_creation/GameCreationStepManager.js index aa162ec..6742935 100644 --- a/client/src/modules/game_creation/GameCreationStepManager.js +++ b/client/src/modules/game_creation/GameCreationStepManager.js @@ -411,11 +411,11 @@ function renderReviewAndCreateStep (containerId, stepNumber, game, deckManager) : 'Temporary Moderator - deal me into the game.'; if (game.hasTimer) { - const formattedHours = !isNaN(game.timerParams.hours) + const formattedHours = game.timerParams.hours !== null ? game.timerParams.hours + ' Hours' : '0 Hours'; - const formattedMinutes = !isNaN(game.timerParams.minutes) + const formattedMinutes = game.timerParams.minutes !== null ? game.timerParams.minutes + ' Minutes' : '0 Minutes';