Skip to content

Commit

Permalink
Show hyphen when no severity in SymptomTable (#10662)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev authored Feb 18, 2025
1 parent d5b769a commit fc9e022
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/components/Patient/symptoms/SymptomTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,18 @@ export function SymptomTable({
{symptom.code.display}
</TableCell>
<TableCell>
<Badge
variant="outline"
className={`whitespace-nowrap ${
SYMPTOM_SEVERITY_STYLES[symptom.severity]
}`}
>
{t(symptom.severity)}
</Badge>
{symptom.severity ? (
<Badge
variant="outline"
className={`whitespace-nowrap ${
SYMPTOM_SEVERITY_STYLES[symptom.severity]
}`}
>
{t(symptom.severity)}
</Badge>
) : (
"-"
)}
</TableCell>
<TableCell>
<Badge
Expand Down

0 comments on commit fc9e022

Please sign in to comment.