Skip to content

Commit

Permalink
fix: prevent from crashing when patientContext isn't resolved yet (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
gasp authored May 28, 2024
1 parent e4d245c commit 093522e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DischargeDetailsActivityContent: FunctionComponent = () => {
<Fragment>
<div className="patientDetails__content_header"></div>
<div className="patientDetails__content_body">
{status.toString() === PatientDTOStatusEnum.O ? (
{status?.toString() === PatientDTOStatusEnum.O ? (
<PatientDetailsContent
title={t("patient.summary")}
content={PatientSummary}
Expand Down

0 comments on commit 093522e

Please sign in to comment.