From 64d140bbaa4a7ae5850b4fea231ba767db8d953c Mon Sep 17 00:00:00 2001 From: Mauricio Junior Date: Sun, 1 May 2016 19:55:23 -0300 Subject: [PATCH] fix bug play --- src/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/app.js b/src/js/app.js index d41fd34..239f50a 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -44,6 +44,7 @@ const Pomodoro = React.createClass({ }, play() { + if(this.state.play) { return false; } clearInterval(this.interval); this.interval = setInterval(this.elapseTime, 1000); this.setState({play: true});