Skip to content

Commit

Permalink
Change 'Before you begin' list <a> tag render condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Bottle7 committed Jul 26, 2023
1 parent 7261f80 commit d0b0d7a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/frontend/src/components/public/PIAFormTabs/intake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ export const PIAFormIntake = () => {
{Messages.PiaIntakeHeader.ListText.map((item, index) => (
<li key={index}>
{item.en}
<a
href={item.linkHref}
rel="noreferrer external"
target="_blank"
>
{item.linkText}
{item.linkText && (
{(item.linkHref && item.linkText) && (
<a
href={item.linkHref}
rel="noreferrer external"
target="_blank"
>
{item.linkText}
<FontAwesomeIcon
className="ms-1"
icon={faUpRightFromSquare}
/>
)}
</a>
</a>
)}
</li>
))}
</ul>
Expand Down

0 comments on commit d0b0d7a

Please sign in to comment.