Skip to content

Commit d7b820a

Browse files
committed
Hotfix for incorrect ternary statement in DatePicker
1 parent 62e5322 commit d7b820a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/date_picker/DatePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DatePicker extends React.Component {
4545
const { inputClassName, value } = this.props;
4646
const inputFormat = this.props.inputFormat || time.formatDate;
4747
const date = Object.prototype.toString.call(value) === '[object Date]' ? value : undefined;
48-
const formattedDate = date === undefined ? inputFormat(value) : '';
48+
const formattedDate = date === undefined ? '' : inputFormat(value);
4949

5050
return (
5151
<div data-react-toolbox='date-picker'>

0 commit comments

Comments
 (0)