From c962536e89788315425c1fcc57c00cdb6f2093e1 Mon Sep 17 00:00:00 2001 From: Francesco Esposito <33671357+frab1t@users.noreply.github.com> Date: Thu, 21 Mar 2019 14:56:24 +0100 Subject: [PATCH] edit start button behavior --- src/components/ButtonBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ButtonBox.js b/src/components/ButtonBox.js index 7be77c6..af2d53f 100644 --- a/src/components/ButtonBox.js +++ b/src/components/ButtonBox.js @@ -19,7 +19,7 @@ class ButtonBox extends Component { size="lg" color="success" onClick={this.props.startTimer} - disabled={this.props.isStarted} + disabled={this.props.isStarted || this.props.seconds===0} > START