Skip to content

Commit 488ee58

Browse files
committed
Merge pull request #9 from mauriciojunior/fix-play
fix bug play
2 parents 8024d49 + 64d140b commit 488ee58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const Pomodoro = React.createClass({
4545
},
4646

4747
play() {
48+
if(this.state.play) { return false; }
4849
clearInterval(this.interval);
4950
this.interval = setInterval(this.elapseTime, 1000);
5051
this.setState({play: true});

0 commit comments

Comments
 (0)