Skip to content

Commit db16a14

Browse files
committed
Remove unnecessary default value
1 parent d2baa7a commit db16a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export default function DateTimePicker(props: DateTimePickerProps) {
244244

245245
onChange(nextValueFromWithHour, shouldCloseWidgets);
246246
} else {
247-
onChange(nextValueFrom || null, shouldCloseWidgets);
247+
onChange(nextValueFrom, shouldCloseWidgets);
248248
}
249249
}
250250

0 commit comments

Comments
 (0)