Skip to content

Commit

Permalink
propogate props to prevent open access fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-ruoxi committed Nov 22, 2023
1 parent 97807a6 commit 5ff62a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/publications/BibCard/BibCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export const BibCard: React.FC<BibCardProps> = ({ title = '', ...otherProps }) =
<PublicationButton doi={props.doi} url={url}>
{getJournalAndYear(props.journal, props.year)}
</PublicationButton>
<OpenAccessButton doi={props.doi} url={props.openAccessUrl} />
{!props.preventOpenAccessFetch && (
<OpenAccessButton doi={props.doi} url={props.openAccessUrl} />
)}
<BibtexButton doi={props.doi} />
</div>
)}
Expand Down

0 comments on commit 5ff62a6

Please sign in to comment.