File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,14 +151,14 @@ const Clock = React.createClass({
151
151
selectedTime : time ,
152
152
} ) ;
153
153
154
- let { onChangeHours } = this . props ;
154
+ const { onChangeHours } = this . props ;
155
155
156
156
if ( finished ) {
157
157
setTimeout ( ( ) => {
158
158
this . setState ( {
159
159
mode : 'minute' ,
160
160
} ) ;
161
- if ( typeof ( onChangeHours === 'function' ) ) {
161
+ if ( typeof ( onChangeHours ) === 'function' ) {
162
162
onChangeHours ( time ) ;
163
163
}
164
164
} , 100 ) ;
@@ -172,8 +172,8 @@ const Clock = React.createClass({
172
172
selectedTime : time ,
173
173
} ) ;
174
174
175
- let { onChangeMinutes } = this . props ;
176
- if ( typeof ( onChangeMinutes === 'function' ) ) {
175
+ const { onChangeMinutes } = this . props ;
176
+ if ( typeof ( onChangeMinutes ) === 'function' ) {
177
177
onChangeMinutes ( time ) ;
178
178
}
179
179
} ,
You can’t perform that action at this time.
0 commit comments