Skip to content

Commit

Permalink
Fix/store birthdayformat (#97)
Browse files Browse the repository at this point in the history
* store birthdayformat; update personData on change

* fix openToDate

Co-authored-by: Gordon Grund <[email protected]>
  • Loading branch information
ggrund-tsi and ggrund-tsi authored Jun 15, 2021
1 parent b7253d1 commit a8573e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/modules/form-group.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const PersonInputs = (props: any) => {
dropdownMode="select"
maxDate={new Date()}
minDate={new Date(1900, 0, 1, 12)}
openToDate={new Date(1990, 0, 1)}
openToDate={dateOfBirth ? dateOfBirth : new Date(1990, 0, 1)}
/>
</Col>
</Form.Group>
Expand Down

0 comments on commit a8573e7

Please sign in to comment.