diff --git a/src/time-picker/clock.jsx b/src/time-picker/clock.jsx index acfd1b88f2b668..60bfd9d1fafbe3 100644 --- a/src/time-picker/clock.jsx +++ b/src/time-picker/clock.jsx @@ -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); @@ -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); } },