Skip to content

Commit

Permalink
(fix) O3-2724: Follow-up to fix crash on displayName (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandones authored May 29, 2024
1 parent b68630d commit 7a62eb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PatientSearch: React.FC<PatientSearchProps> = ({ closeWorkspace, viewState
setNewVisitMode(mode);
};

const patientName = displayName(patient);
const patientName = patient && displayName(patient);
return patient ? (
<>
<div className={styles.patientBannerContainer}>
Expand Down

0 comments on commit 7a62eb4

Please sign in to comment.