diff --git a/src/apps/copilots/src/pages/copilot-request-form/index.tsx b/src/apps/copilots/src/pages/copilot-request-form/index.tsx index 53d98eecb..8d637368d 100644 --- a/src/apps/copilots/src/pages/copilot-request-form/index.tsx +++ b/src/apps/copilots/src/pages/copilot-request-form/index.tsx @@ -376,6 +376,10 @@ const CopilotRequestForm: FC<{}> = () => { error={formErrors.startDate} dirty minDate={new Date()} + maxDate={new Date(new Date() + .setFullYear(new Date() + .getFullYear() + 2))} + minYear={new Date()} />

How many weeks will you need the copilot for?

= (props: InputDatePickerProps) const datePickerRef = useRef>(null) const years = useMemo(() => { const maxYear = getYear(props.maxDate ? props.maxDate : new Date()) + 1 - return range(1979, maxYear, 1) + const minYear = getYear(props.minYear ? props.minYear : 1979) + return range(minYear, maxYear, 1) }, [props.maxDate]) const [stateHasFocus, setStateHasFocus] = useState(false)