Skip to content

Commit

Permalink
Merge pull request #9 from mauriciojunior/fix-play
Browse files Browse the repository at this point in the history
fix bug play
  • Loading branch information
afonsopacifer committed May 1, 2016
2 parents 8024d49 + 64d140b commit 488ee58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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});
Expand Down

0 comments on commit 488ee58

Please sign in to comment.