Coerce includeTime to a boolean

This commit is contained in:
Benaiah Mischenko 2017-11-27 15:06:21 -08:00 committed by Shawn Erquhart
parent d6c0505c49
commit b5b7fab2a7

View File

@ -28,7 +28,7 @@ export default class DateControl extends React.Component {
const { field, includeTime, value } = this.props;
const format = field.get('format', moment.defaultFormat);
return (<DateTime
timeFormat={includeTime}
timeFormat={!!includeTime}
value={moment(value, format)}
onChange={this.handleChange}
/>);