Skip to content

Commit

Permalink
cleanup(wp): simplify double conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Feb 11, 2025
1 parent b5621ec commit d81e999
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions site/LongFormPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,25 +167,18 @@ export const LongFormPage = (props: {

{withCitation && (
<div className="tools">
{withCitation && (
<>
<a href="#licence">
<FontAwesomeIcon
icon={
faCreativeCommons
}
/>
Reuse our work
freely
</a>
<a href="#citation">
<FontAwesomeIcon
icon={faBook}
/>
Cite this research
</a>
</>
)}
<a href="#licence">
<FontAwesomeIcon
icon={faCreativeCommons}
/>
Reuse our work freely
</a>
<a href="#citation">
<FontAwesomeIcon
icon={faBook}
/>
Cite this research
</a>
</div>
)}
</>
Expand Down

0 comments on commit d81e999

Please sign in to comment.