Skip to content

Commit b2e7bd1

Browse files
committed
=== instead of ==
1 parent 173f015 commit b2e7bd1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/controls/dateTimePicker/DateTimePicker.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
133133
hours = 12;
134134
}
135135
}
136-
else {
137-
//am - if hours == 12, set hours to 0 here
138-
if (hours == 12){
136+
else if (hours === 12) {
137+
//am - if hours == 12, set hours to 0 here
139138
hours = 0;
140139
}
141-
}
142140
}
143141

144142
if (hours > 23) {

0 commit comments

Comments
 (0)