Skip to content

Commit

Permalink
fix: only remove date field if undefined (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
turban authored Sep 22, 2020
1 parent 06f2ff8 commit 9b98e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/periods/StartEndDates.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const StartEndDates = props => {
}
}, [startDate, endDate, setStartDate, setEndDate]);

return startDate && endDate ? (
return startDate !== undefined && endDate !== undefined ? (
<Fragment>
<DatePicker
label={i18n.t('Start date')}
Expand Down

0 comments on commit 9b98e10

Please sign in to comment.