Skip to content

Commit

Permalink
fix: Update isSelfAsserted affiliation sorting method to validate on …
Browse files Browse the repository at this point in the history
…behalf of (#2066)

Co-authored-by: Angel Montenegro <[email protected]>
  • Loading branch information
DanielPalafox and amontenegro authored Oct 3, 2023
1 parent 28ac2ec commit 88b8489
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,8 @@ export class AffiliationsSortService {
})
}

private static isSelfAsserted(
affiliationGroup: AffiliationGroup,
orcid: string
): boolean {
return affiliationGroup.defaultAffiliation.source === orcid
private static isSelfAsserted(affiliationGroup: AffiliationGroup, orcid: string): boolean {
const obo = !!(affiliationGroup.defaultAffiliation.assertionOriginName || affiliationGroup.defaultAffiliation.assertionOriginOrcid)
return obo ? obo : affiliationGroup.defaultAffiliation.source === orcid
}
}

0 comments on commit 88b8489

Please sign in to comment.