Skip to content

Commit

Permalink
Hardcode min and max dates to 1980-01-01 through 2022-12-31
Browse files Browse the repository at this point in the history
  • Loading branch information
nerik committed Sep 27, 2023
1 parent ee5a107 commit a40244d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/components/analysis/define/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default function Analysis() {
name='start-date'
value={start ? dateToInputFormat(start) : ''}
onChange={onStartDateChange}
min='1900-01-01'
min='1980-01-01'
max={dateToInputFormat(end)}
/>
</FormGroupStructureCustom>
Expand All @@ -418,7 +418,7 @@ export default function Analysis() {
value={end ? dateToInputFormat(end) : ''}
onChange={onEndDateChange}
min={dateToInputFormat(start)}
max={new Date().toISOString().split('T')[0]}
max='2022-12-31'
/>
</FormGroupStructureCustom>
</FormBlock>
Expand Down

0 comments on commit a40244d

Please sign in to comment.