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
  • Loading branch information
DanielPalafox committed Oct 3, 2023
1 parent 954e29e commit 8e2e531
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 8e2e531

Please sign in to comment.