Skip to content

Commit

Permalink
chore: fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Oct 30, 2024
1 parent 1fb42a0 commit 829b8c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/metadata/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ const createFundingContent = (
return (
funding.identifier ||
funding.url ||
(Array.isArray(funding.funder) &&
funding.funder.some(funder => {
return funder?.name;
})) ||
funding.funder?.name
(Array.isArray(funding.funder)
? funding.funder.some(funder => {
return funder?.name;
})
: funding?.funder?.name)
);
}) || null
);
Expand Down

0 comments on commit 829b8c8

Please sign in to comment.