From 5e3f4c18e430a1cde9ab76829bd435727fbd3583 Mon Sep 17 00:00:00 2001 From: Daniel Palafox Date: Wed, 4 Oct 2023 11:01:52 -0500 Subject: [PATCH] fix: Only return `on behalf of` as true if assertion origin orcid its the user (#2068) --- .../record-affiliations-sort.service.ts | 5 +---- 1 file changed, 1 insertion(+), 4 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 825ef9908e..2b7ac67a34 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 @@ -210,10 +210,7 @@ export class AffiliationsSortService { affiliationGroup: AffiliationGroup, orcid: string ): boolean { - const obo = !!( - affiliationGroup.defaultAffiliation.assertionOriginName || - affiliationGroup.defaultAffiliation.assertionOriginOrcid - ) + const obo = affiliationGroup.defaultAffiliation.assertionOriginOrcid === orcid return obo ? obo : affiliationGroup.defaultAffiliation.source === orcid } }