From a19d90cda0b858e97c8dff339ff75e1e38833e5e Mon Sep 17 00:00:00 2001 From: amontenegro Date: Tue, 3 Oct 2023 20:26:04 +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 --- .../record-affiliations-sort.service.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/core/record-affiliations-sort/record-affiliations-sort.service.ts b/src/app/core/record-affiliations-sort/record-affiliations-sort.service.ts index b2ba5a0eb6..825ef9908e 100644 --- a/src/app/core/record-affiliations-sort/record-affiliations-sort.service.ts +++ b/src/app/core/record-affiliations-sort/record-affiliations-sort.service.ts @@ -206,8 +206,14 @@ export class AffiliationsSortService { }) } - private static isSelfAsserted(affiliationGroup: AffiliationGroup, orcid: string): boolean { - const obo = !!(affiliationGroup.defaultAffiliation.assertionOriginName || affiliationGroup.defaultAffiliation.assertionOriginOrcid) + private static isSelfAsserted( + affiliationGroup: AffiliationGroup, + orcid: string + ): boolean { + const obo = !!( + affiliationGroup.defaultAffiliation.assertionOriginName || + affiliationGroup.defaultAffiliation.assertionOriginOrcid + ) return obo ? obo : affiliationGroup.defaultAffiliation.source === orcid } }