From 8f388245a6dd821911cfbfa5c93db5a254d08b23 Mon Sep 17 00:00:00 2001 From: rajku-dev Date: Tue, 18 Feb 2025 03:46:36 +0530 Subject: [PATCH 1/2] Show hyphen when no severity in SymptonTable --- src/components/Patient/symptoms/SymptomTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Patient/symptoms/SymptomTable.tsx b/src/components/Patient/symptoms/SymptomTable.tsx index a0c2aa026e9..68e3bb1e108 100644 --- a/src/components/Patient/symptoms/SymptomTable.tsx +++ b/src/components/Patient/symptoms/SymptomTable.tsx @@ -78,7 +78,7 @@ export function SymptomTable({ SYMPTOM_SEVERITY_STYLES[symptom.severity] }`} > - {t(symptom.severity)} + {symptom.severity ? t(symptom.severity) : "-"} From b76e301708c9535d0b329fafa42f91bade37a040 Mon Sep 17 00:00:00 2001 From: rajku-dev Date: Tue, 18 Feb 2025 04:09:43 +0530 Subject: [PATCH 2/2] wrap badge instead --- .../Patient/symptoms/SymptomTable.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/Patient/symptoms/SymptomTable.tsx b/src/components/Patient/symptoms/SymptomTable.tsx index 68e3bb1e108..8b9dd9cb973 100644 --- a/src/components/Patient/symptoms/SymptomTable.tsx +++ b/src/components/Patient/symptoms/SymptomTable.tsx @@ -72,14 +72,18 @@ export function SymptomTable({ {symptom.code.display} - - {symptom.severity ? t(symptom.severity) : "-"} - + {symptom.severity ? ( + + {t(symptom.severity)} + + ) : ( + "-" + )}