Skip to content

Commit fa615c7

Browse files
refactor(ExceptionDateRange): Remove duplicate condition
1 parent 83fbd3d commit fa615c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/editor/components/ExceptionDateRange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class ExceptionDateRange extends Component<Props, State> {
5050
// This prevents the user from inputting invalid data. Validation is not required since this behaviour
5151
// is fully prevented (see also use of minDate and maxDate in DateTimePickers)
5252
if (
53-
(isStartDate && (isStartDate && newRangeBoundary.diff(endMoment) > 0)) ||
53+
(isStartDate && newRangeBoundary.diff(endMoment) > 0) ||
5454
(!isStartDate && newRangeBoundary.diff(startMoment) < 0)
5555
) {
5656
// You should stop typing and have hit an incorrect date and we should flag the entry as incorrect

0 commit comments

Comments
 (0)