Skip to content

Commit 64d140b

Browse files
fix bug play
1 parent 1e9658b commit 64d140b

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
@@ -44,6 +44,7 @@ const Pomodoro = React.createClass({
4444
},
4545

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

0 commit comments

Comments
 (0)