From 8da29ae3033ac4ad036678bc5d1e7c79a83e0cc2 Mon Sep 17 00:00:00 2001 From: leomendoza123 Date: Fri, 8 Dec 2023 10:36:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20GITHUB=20ACTIONS=20format=5Fpret?= =?UTF-8?q?tier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend-error/backend-error.component.html | 7 +++---- .../components/backend-error/backend-error.component.ts | 2 +- .../components/form-personal/form-personal.component.ts | 9 ++++++--- src/app/register2/components/register2.scss-theme.scss | 1 - 4 files changed, 10 insertions(+), 9 deletions(-) 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; } } - } }