From 71469721cacb6224e080910e5491da7935f5eea9 Mon Sep 17 00:00:00 2001 From: langemike Date: Thu, 30 May 2024 12:23:48 +0200 Subject: [PATCH] fix: generic consent_required validation message Co-authored-by: Mike van Veenhuijzen --- .../src/components/RegistrationForm/RegistrationForm.tsx | 2 +- platforms/web/public/locales/en/account.json | 2 +- platforms/web/public/locales/es/account.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-react/src/components/RegistrationForm/RegistrationForm.tsx b/packages/ui-react/src/components/RegistrationForm/RegistrationForm.tsx index 314584c51..103e1547a 100644 --- a/packages/ui-react/src/components/RegistrationForm/RegistrationForm.tsx +++ b/packages/ui-react/src/components/RegistrationForm/RegistrationForm.tsx @@ -126,7 +126,7 @@ const RegistrationForm: React.FC = ({ value={consentValues[consent.name] || ''} required={consent.required} error={!!consentError} - helperText={consentErrors?.includes(consent.name) ? t('registration.consent_required', { field: consent.name }) : undefined} + helperText={t('registration.consent_required')} onChange={onConsentChange} lang={htmlLang} /> diff --git a/platforms/web/public/locales/en/account.json b/platforms/web/public/locales/en/account.json index 8e876f2c2..5ca046894 100644 --- a/platforms/web/public/locales/en/account.json +++ b/platforms/web/public/locales/en/account.json @@ -134,7 +134,7 @@ }, "registration": { "already_account": "Already have an account?", - "consent_required": "This field is required, please fill in {{field}} to continue.", + "consent_required": "Consent required, please check the box to continue.", "consents_error": "Please accept all required consents to continue.", "continue": "Continue", "email": "Email", diff --git a/platforms/web/public/locales/es/account.json b/platforms/web/public/locales/es/account.json index 2943ea3b3..e0bddc27f 100644 --- a/platforms/web/public/locales/es/account.json +++ b/platforms/web/public/locales/es/account.json @@ -144,7 +144,7 @@ }, "registration": { "already_account": "¿Ya tienes una cuenta?", - "consent_required": "Este campo es obligatorio, por favor completa {{field}} para continuar.", + "consent_required": "Se requiere consentimiento, marque la casilla para continuar.", "consents_error": "Acepte todos los consentimientos necesarios para continuar.", "continue": "Continuar", "email": "Correo electrónico",