We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83fbd3d commit fa615c7Copy full SHA for fa615c7
lib/editor/components/ExceptionDateRange.js
@@ -50,7 +50,7 @@ export default class ExceptionDateRange extends Component<Props, State> {
50
// This prevents the user from inputting invalid data. Validation is not required since this behaviour
51
// is fully prevented (see also use of minDate and maxDate in DateTimePickers)
52
if (
53
- (isStartDate && (isStartDate && newRangeBoundary.diff(endMoment) > 0)) ||
+ (isStartDate && newRangeBoundary.diff(endMoment) > 0) ||
54
(!isStartDate && newRangeBoundary.diff(startMoment) < 0)
55
) {
56
// You should stop typing and have hit an incorrect date and we should flag the entry as incorrect
0 commit comments