diff --git a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/address-field-handlers.ts b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/address-field-handlers.ts index d0f2a0aca..db87be2a7 100644 --- a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/address-field-handlers.ts +++ b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/address-field-handlers.ts @@ -162,7 +162,7 @@ const createRadioButtonsValidationHandler = const createDatesValidationHandler = (dateStateSetter: FieldStateSetFn, dateFieldState: FieldState) => (e: React.ChangeEvent) => { - const fieldId = Number(e.target.id.split('-')[1]); + const fieldId = Number(e.target.name.split('-')[2]); const validationStatus = e.target.validity.valueMissing; dateStateSetter({ ...dateFieldState, [fieldId]: !validationStatus }); diff --git a/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/fields/date.tsx b/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/fields/date.tsx index 601f49784..b46fd7a0e 100644 --- a/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/fields/date.tsx +++ b/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/fields/date.tsx @@ -72,13 +72,18 @@ export const DateField = ({ return (
- + {field.label} - + , DatePickerPr