Skip to content

Commit

Permalink
fix: generic consent_required validation message
Browse files Browse the repository at this point in the history
Co-authored-by: Mike van Veenhuijzen <mike@videodock.com>
  • Loading branch information
langemike and langemike authored May 30, 2024
1 parent 57e2641 commit 7146972
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const RegistrationForm: React.FC<Props> = ({
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}
/>
Expand Down
2 changes: 1 addition & 1 deletion platforms/web/public/locales/en/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion platforms/web/public/locales/es/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7146972

Please sign in to comment.