Skip to content

Commit

Permalink
typo correction and using const
Browse files Browse the repository at this point in the history
  • Loading branch information
tyfoo committed Oct 21, 2015
1 parent 69d47fa commit c663e35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/time-picker/clock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ const Clock = React.createClass({
selectedTime: time,
});

let { onChangeHours } = this.props;
const { onChangeHours } = this.props;

if (finished) {
setTimeout(() => {
this.setState({
mode: 'minute',
});
if (typeof(onChangeHours === 'function')) {
if (typeof(onChangeHours) === 'function') {
onChangeHours(time);
}
}, 100);
Expand All @@ -172,8 +172,8 @@ const Clock = React.createClass({
selectedTime: time,
});

let { onChangeMinutes } = this.props;
if (typeof(onChangeMinutes === 'function')) {
const { onChangeMinutes } = this.props;
if (typeof(onChangeMinutes) === 'function') {
onChangeMinutes(time);
}
},
Expand Down

0 comments on commit c663e35

Please sign in to comment.