From 3a6db5c7ec859f3b23f4623644bdf5bb1de63ad6 Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Mon, 26 Aug 2024 14:15:22 +0200 Subject: [PATCH] fix: make year of birth now - 18 years --- components/TempDesignSystem/Form/Date/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TempDesignSystem/Form/Date/index.tsx b/components/TempDesignSystem/Form/Date/index.tsx index 800adcb59..25caf72f3 100644 --- a/components/TempDesignSystem/Form/Date/index.tsx +++ b/components/TempDesignSystem/Form/Date/index.tsx @@ -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}` }))