Skip to content

Commit

Permalink
🤖 GITHUB ACTIONS format_prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Dec 8, 2023
1 parent aaa4d4e commit 8da29ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<ng-container
*ngIf="recognizedError[errorCode] === 0"
>
<ng-container *ngIf="recognizedError[errorCode] === 0">
<ng-container *ngIf="!registrationTogglz">
<ng-container i18n="@@register.emailAlreadyExists"
>This email already exists in our system. Would you like to</ng-container
Expand All @@ -13,7 +11,8 @@

<ng-container *ngIf="registrationTogglz && nextButtonWasClicked">
<ng-container i18n="@@register.emailIsAlreadyAssociated"
>This email is already associated with an existing ORCID record. Please use a different email address.</ng-container
>This email is already associated with an existing ORCID record. Please
use a different email address.</ng-container
>
</ng-container>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/app/register2/components/register2.scss-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
color: $orcid-dark-primary-text !important;
}
}

}
}

Expand Down

0 comments on commit 8da29ae

Please sign in to comment.