Skip to content

Commit

Permalink
Conditionally present 'conflict' or 'conflicts' on TestQueue Status c…
Browse files Browse the repository at this point in the history
…olumn
  • Loading branch information
howard-e committed Sep 18, 2024
1 parent e86eab7 commit 76bd691
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/components/common/ReportStatusSummary/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ const ReportStatusSummary = ({

const getConflictsAnchor = conflictsCount => {
if (conflictsCount === 0) return null;
const conflictsText = `conflict${conflictsCount === 1 ? '' : 's'}`;
return (
<a
style={{ color: '#ce1b4c' }}
href={`/test-queue/${testPlanReport.id}/conflicts`}
>
with {conflictsCount} conflicts
with {conflictsCount} {conflictsText}
</a>
);
};
Expand Down

0 comments on commit 76bd691

Please sign in to comment.