Skip to content

Commit

Permalink
Merge branch 'main' into leo/fix-randomly-failing-unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 authored Oct 3, 2023
2 parents 7b08de7 + 88b8489 commit 9c44fd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## v2.40.3 - 2023-10-03

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.40.2...v2.40.3)

## v2.40.2 - 2023-10-03

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.40.0...v2.40.2)

### Feature

- Add new source sorting option for affiliations, funding and … (#2064)

## v2.40.0 - 2023-09-07

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.39.10...v2.40.0)
Expand Down
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 9c44fd2

Please sign in to comment.