diff --git a/src/app/register2/components/backend-error/backend-error.component.html b/src/app/register2/components/backend-error/backend-error.component.html index e4bf00b294..261415a216 100644 --- a/src/app/register2/components/backend-error/backend-error.component.html +++ b/src/app/register2/components/backend-error/backend-error.component.html @@ -1,6 +1,4 @@ - + This email already exists in our system. Would you like to This email is already associated with an existing ORCID record. Please use a different email address.This email is already associated with an existing ORCID record. Please + use a different email address. diff --git a/src/app/register2/components/backend-error/backend-error.component.ts b/src/app/register2/components/backend-error/backend-error.component.ts index bb9758f8e7..a9dc479478 100644 --- a/src/app/register2/components/backend-error/backend-error.component.ts +++ b/src/app/register2/components/backend-error/backend-error.component.ts @@ -53,7 +53,7 @@ export class BackendErrorComponent implements OnInit { private _signIn: SignInService, private _errorHandler: ErrorHandlerService, private _togglz: TogglzService, - @Inject(WINDOW) private window: Window + @Inject(WINDOW) private window: Window ) {} ngOnInit() { this._togglz 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 284bdc1f63..de12f2be3b 100644 --- a/src/app/register2/components/form-personal/form-personal.component.ts +++ b/src/app/register2/components/form-personal/form-personal.component.ts @@ -285,12 +285,15 @@ export class FormPersonalComponent extends BaseForm implements OnInit { get emailError(): boolean { if (this.emailFormTouched && this.emails.controls.email.errors) { const backendError = this.emails.controls.email.errors?.backendError - return !(backendError && backendError[0] === 'orcid.frontend.verify.duplicate_email' && !this.nextButtonWasClicked); + return !( + backendError && + backendError[0] === 'orcid.frontend.verify.duplicate_email' && + !this.nextButtonWasClicked + ) } - return false + return false } - private announce(announcement: string) { if (environment.debugger) { console.debug('📢' + announcement) diff --git a/src/app/register2/components/register2.scss-theme.scss b/src/app/register2/components/register2.scss-theme.scss index 5625fb133b..505612fea6 100644 --- a/src/app/register2/components/register2.scss-theme.scss +++ b/src/app/register2/components/register2.scss-theme.scss @@ -96,7 +96,6 @@ color: $orcid-dark-primary-text !important; } } - } }