Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Oct 30, 2023
1 parent 4a5e2b6 commit a6d44be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}}
>
Expand Down Expand Up @@ -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,
});
}}
>
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a6d44be

Please sign in to comment.