From 21170285c2e65aa30ca81e43e6e5666ccd14af47 Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 15 Sep 2019 16:00:24 +1000 Subject: [PATCH] hide timer when instance not in progress --- client/src/components/instance.ctrl.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/components/instance.ctrl.jsx b/client/src/components/instance.ctrl.jsx index faa38afb..329eea45 100644 --- a/client/src/components/instance.ctrl.jsx +++ b/client/src/components/instance.ctrl.jsx @@ -76,11 +76,13 @@ function Controls(args) { background: displayColour, }; - const timer = ( -
-
 
-
- ); + const timer = instance.phase !== 'InProgress' + ? null + : ( +
+
 
+
+ ); const ready = instance.phase !== 'Finished' ?