Skip to content

Commit

Permalink
Merge pull request #280 from datacite/contributor-links
Browse files Browse the repository at this point in the history
Fix typo in PersonTable links
  • Loading branch information
jrhoads authored Sep 1, 2023
2 parents 298b146 + a17e209 commit ac54fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PersonTable/PersonTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ type Props = {

const PersonTable: React.FunctionComponent<Props> = ({ people }) => {
const personList = people.map( (person) => {
const link = person.id && person.id.startsWith('https://orcid.org/0') ? 'orcid.org' + orcidFromUrl(person.id) : undefined;
const link = person.id && person.id.startsWith('https://orcid.org/0') ?
'/orcid.org' + orcidFromUrl(person.id) : undefined;
const personName = person.familyName ? [person.givenName, person.familyName].join(' ') : person.name
const personLink = link ? <Link href={link}><a>{personName}</a></Link> : personName;
const affiliations = person.affiliation.map((item) => {
Expand Down

0 comments on commit ac54fb6

Please sign in to comment.