diff --git a/src/components/BirthdayPage/index.tsx b/src/components/BirthdayPage/index.tsx index f990a62..d91783d 100644 --- a/src/components/BirthdayPage/index.tsx +++ b/src/components/BirthdayPage/index.tsx @@ -25,7 +25,7 @@ function BirthdayPage(): JSX.Element { const handleNext = () => navigate(routes.client.birthtime()) const handleValid = (birthdate: string) => { dispatch(actions.birthdate.update(birthdate)) - setIsDisabled(false) + setIsDisabled(birthdate === '') } return ( diff --git a/src/components/BirthtimePage/index.tsx b/src/components/BirthtimePage/index.tsx index 313e28b..f58a654 100644 --- a/src/components/BirthtimePage/index.tsx +++ b/src/components/BirthtimePage/index.tsx @@ -20,7 +20,7 @@ function BirthtimePage(): JSX.Element {
{t('nasaDataUsing')}
{placeholder}
diff --git a/src/components/DateTimePicker/DatePicker.tsx b/src/components/DateTimePicker/DatePicker.tsx index d16851d..c266315 100644 --- a/src/components/DateTimePicker/DatePicker.tsx +++ b/src/components/DateTimePicker/DatePicker.tsx @@ -3,30 +3,33 @@ import { useTranslation } from 'react-i18next' import { FormField } from '../../types' import DateInput from './DateInput' import ErrorText from './ErrorText' -import { stringify, getMaxYear, isNotTheDate, getDaysInMonth } from './utils' +import { stringify, getCurrentYear } from './utils' export function DatePicker(props: FormField