diff --git a/index.js b/index.js index 689d293..1e536fd 100644 --- a/index.js +++ b/index.js @@ -102,7 +102,7 @@ class CountDown extends React.Component { this.props.onFinish(); } if (this.props.onChange) { - this.props.onChange(); + this.props.onChange(until); } } @@ -110,7 +110,7 @@ class CountDown extends React.Component { this.setState({lastUntil: 0, until: 0}); } else { if (this.props.onChange) { - this.props.onChange(); + this.props.onChange(until); } this.setState({lastUntil: until, until: until - 1}); }