Skip to content

Commit

Permalink
fix(LatestPaperItem.tsx): remove unnecessary interpolation in Link co…
Browse files Browse the repository at this point in the history
…mponent URL

The unnecessary interpolation in the Link component URL has been removed to fix the url to the single publication route.
  • Loading branch information
ktun95 committed Feb 29, 2024
1 parent bdefbd4 commit e8b7e65
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ const LatestPaperItem = ({ data }: LatestPaperItemProperties) => {
<li className={listItem}>
<Box className={mainContent}>
<Typography className={mainContent}>
<Link
className={link}
to={`/publication/${
import.meta.env.VITE_PUBLICATION_URL
}/${pubmedId}`}>
<Link className={link} to={`/publication/${pubmedId}`}>
{`${authors}. (${date}). `}
</Link>
{`${title} `}
Expand Down

0 comments on commit e8b7e65

Please sign in to comment.