diff --git a/src/app/register2/components/form-password/form-password.component.ts b/src/app/register2/components/form-password/form-password.component.ts index d2093a672b..9cd2411c67 100644 --- a/src/app/register2/components/form-password/form-password.component.ts +++ b/src/app/register2/components/form-password/form-password.component.ts @@ -143,7 +143,9 @@ export class FormPasswordComponent extends BaseForm implements OnInit { const validStatus = this.confirmPasswordValid && this.passwordValid if (!this.passwordsValidAreValidAlreadyChecked && validStatus) { - this.announce($localize`:@@register.passwordAreValid:Your passwords match`) + this.announce( + $localize`:@@register.passwordAreValid:Your passwords match` + ) } else if (this.passwordsValidAreValidAlreadyChecked && !validStatus) { this.announce( $localize`:@@register.passwordAreNotValid:Your passwords do not match` diff --git a/src/app/register2/components/form-personal/form-personal.component.ts b/src/app/register2/components/form-personal/form-personal.component.ts index efaaff76e5..757cb5f356 100644 --- a/src/app/register2/components/form-personal/form-personal.component.ts +++ b/src/app/register2/components/form-personal/form-personal.component.ts @@ -272,12 +272,10 @@ export class FormPersonalComponent extends BaseForm implements OnInit { get emailsAreValid() { const validStatus = this.emailConfirmationValid && this.emailValid if (!this.emailsAreValidAlreadyChecked && validStatus) { - - - this.announce($localize`:@@register.emailAreValid:Your emails match`) } else if (this.emailsAreValidAlreadyChecked && !validStatus) { - this.announce($localize`:@@register.emailAreNotValid:Your emails do not match` + this.announce( + $localize`:@@register.emailAreNotValid:Your emails do not match` ) } this.emailsAreValidAlreadyChecked = validStatus