diff --git a/src/app/cdk/side-bar/side-bar/side-bar.component.ts b/src/app/cdk/side-bar/side-bar/side-bar.component.ts index 55add42620..a80b625d11 100644 --- a/src/app/cdk/side-bar/side-bar/side-bar.component.ts +++ b/src/app/cdk/side-bar/side-bar/side-bar.component.ts @@ -152,7 +152,9 @@ export class SideBarComponent implements OnInit, OnDestroy { } onSideBarElementsDisplay(userRecord: UserRecord): void { - this.isSideBarEmpty.emit(RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord)) + this.isSideBarEmpty.emit( + RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord) + ) } ngOnDestroy() { diff --git a/src/app/record/components/record-header/record-header.component.html b/src/app/record/components/record-header/record-header.component.html index 52a22d44de..3a4de2fe71 100644 --- a/src/app/record/components/record-header/record-header.component.html +++ b/src/app/record/components/record-header/record-header.component.html @@ -8,7 +8,10 @@

This record is locked diff --git a/src/app/record/components/record-info/record-info.component.html b/src/app/record/components/record-info/record-info.component.html index a365586b27..6db0ea80a9 100644 --- a/src/app/record/components/record-info/record-info.component.html +++ b/src/app/record/components/record-info/record-info.component.html @@ -1,12 +1,12 @@

diff --git a/src/app/record/components/record-info/record-info.component.ts b/src/app/record/components/record-info/record-info.component.ts index 2afe992f25..7d8bdc9933 100644 --- a/src/app/record/components/record-info/record-info.component.ts +++ b/src/app/record/components/record-info/record-info.component.ts @@ -36,7 +36,10 @@ export class RecordInfoComponent implements OnInit { this.affiliations ) - this.displaySideBar = RecordUtil.isSideBarEmpty(!!this.isPublicRecord, userRecord) + this.displaySideBar = RecordUtil.isSideBarEmpty( + !!this.isPublicRecord, + userRecord + ) this.displayBiography = !!userRecord?.biography }) } diff --git a/src/app/shared/utils/record.util.ts b/src/app/shared/utils/record.util.ts index a2793e13e0..67b6e6b73c 100644 --- a/src/app/shared/utils/record.util.ts +++ b/src/app/shared/utils/record.util.ts @@ -73,7 +73,10 @@ export class RecordUtil { .join('; ') } - static isSideBarEmpty(isPublicRecord: boolean, userRecord: UserRecord): boolean { + static isSideBarEmpty( + isPublicRecord: boolean, + userRecord: UserRecord + ): boolean { if ( (userRecord?.emails?.emails && (!isPublicRecord || userRecord.emails.emails.length > 0)) ||