From 95b8ff31b803578969dace6b88de0ebdde68b872 Mon Sep 17 00:00:00 2001 From: gaspard Date: Thu, 23 May 2024 22:14:52 +0900 Subject: [PATCH] fix: prevent from crashing when patientContext isn't resolved yet --- .../DischargeDetailsActivityContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/activities/patientDetailsActivityContent/DischargeDetailsActivityContent.tsx b/src/components/activities/patientDetailsActivityContent/DischargeDetailsActivityContent.tsx index 1d97faa25..c4a28b13f 100644 --- a/src/components/activities/patientDetailsActivityContent/DischargeDetailsActivityContent.tsx +++ b/src/components/activities/patientDetailsActivityContent/DischargeDetailsActivityContent.tsx @@ -14,7 +14,7 @@ const DischargeDetailsActivityContent: FunctionComponent = () => {
- {status.toString() === PatientDTOStatusEnum.O ? ( + {status?.toString() === PatientDTOStatusEnum.O ? (