From a6d44be5d8aa0fe4c5a21adfdcb0b143a522e852 Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:32:45 +0530 Subject: [PATCH] Add null check --- src/Components/Patient/PatientInfoCard.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Patient/PatientInfoCard.tsx b/src/Components/Patient/PatientInfoCard.tsx index f1bac8a3ccf..fd6213d8e08 100644 --- a/src/Components/Patient/PatientInfoCard.tsx +++ b/src/Components/Patient/PatientInfoCard.tsx @@ -465,7 +465,7 @@ export default function PatientInfoCard(props: { triggerGoal("Patient Card Button Clicked", { buttonName: action[1], consultationId: consultation?.id, - userId: authUser.id, + userId: authUser?.id, }); }} > @@ -500,7 +500,7 @@ export default function PatientInfoCard(props: { triggerGoal("Patient Card Button Clicked", { buttonName: "Show ABHA Profile", consultationId: consultation?.id, - userId: authUser.id, + userId: authUser?.id, }); }} > @@ -513,7 +513,7 @@ export default function PatientInfoCard(props: { triggerGoal("Patient Card Button Clicked", { buttonName: "Link Care Context", consultationId: consultation?.id, - userId: authUser.id, + userId: authUser?.id, }); close(); setShowLinkCareContext(true); @@ -553,7 +553,7 @@ export default function PatientInfoCard(props: { triggerGoal("Patient Card Button Clicked", { buttonName: "Medico Legal Case", consultationId: consultation?.id, - userId: authUser.id, + userId: authUser?.id, }); setMedicoLegalCase(checked); switchMedicoLegalCase(checked);