Skip to content

Commit efe831b

Browse files
Merge branch 'Fix/DTOSS-10515-Handling-not-found-in-pds-func' of https://github.com/NHSDigital/dtos-cohort-manager into fix/DTOSS-10515-Handling-not-found-in-pds-func
2 parents 932be90 + 7d9a210 commit efe831b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • application/CohortManager/src/Web/app/components

application/CohortManager/src/Web/app/components/card.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ export default function Card({
2626
className="nhsuk-card__heading nhsuk-heading-m"
2727
data-testid="card-heading"
2828
>
29-
<Link href={url} className="nhsuk-link--no-visited-state">
30-
{label}
31-
</Link>
29+
{value > 0 ? (
30+
<Link href={url} className="nhsuk-link--no-visited-state">
31+
{label}
32+
</Link>
33+
) : (
34+
label
35+
)}
3236
</h3>
3337
{description && (
3438
<p className="nhsuk-card__description" data-testid="card-description">

0 commit comments

Comments
 (0)