Skip to content

Commit c663e35

Browse files
committed
typo correction and using const
1 parent 69d47fa commit c663e35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/time-picker/clock.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ const Clock = React.createClass({
151151
selectedTime: time,
152152
});
153153

154-
let { onChangeHours } = this.props;
154+
const { onChangeHours } = this.props;
155155

156156
if (finished) {
157157
setTimeout(() => {
158158
this.setState({
159159
mode: 'minute',
160160
});
161-
if (typeof(onChangeHours === 'function')) {
161+
if (typeof(onChangeHours) === 'function') {
162162
onChangeHours(time);
163163
}
164164
}, 100);
@@ -172,8 +172,8 @@ const Clock = React.createClass({
172172
selectedTime: time,
173173
});
174174

175-
let { onChangeMinutes } = this.props;
176-
if (typeof(onChangeMinutes === 'function')) {
175+
const { onChangeMinutes } = this.props;
176+
if (typeof(onChangeMinutes) === 'function') {
177177
onChangeMinutes(time);
178178
}
179179
},

0 commit comments

Comments
 (0)