Merged in fix/birth-year (pull request #496)
fix: make year of birth now - 18 years Approved-by: Michael Zetterberg
This commit is contained in:
@@ -31,7 +31,7 @@ export default function DateSelect({ name, registerOptions = {} }: DateProps) {
|
||||
value: month,
|
||||
label: `${month}`,
|
||||
}))
|
||||
const years = rangeArray(1900, currentYear)
|
||||
const years = rangeArray(1900, currentYear - 18)
|
||||
.reverse()
|
||||
.map((year) => ({ value: year, label: `${year}` }))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user