Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Dec 22, 2023
1 parent 1a95cea commit bd417fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const ConsultationDetails = (props: any) => {
useAbortableEffect((status: statusType) => {
fetchData(status);
triggerGoal("Patient Consultation Viewed", {
facilityId: patientData?.facility_object?.id,
facilityId: consultationData.facility,
consultationId: consultationId,
userId: authUser.id,
});
Expand Down Expand Up @@ -258,8 +258,8 @@ export const ConsultationDetails = (props: any) => {
title="Patient Dashboard"
className="sm:m-0 sm:p-0"
crumbsReplacements={{
[patientData?.facility_object?.id || ""]: {
name: patientData?.facility_object?.name,
[consultationData.facility || ""]: {
name: consultationData.facility_name,
},
[patientData?.id || ""]: { name: patientData?.name },
[consultationId]: {
Expand Down Expand Up @@ -316,7 +316,7 @@ export const ConsultationDetails = (props: any) => {
onClick={() =>
showPatientNotesPopup
? navigate(
`/facility/${patientData?.facility_object?.id}/patient/${patientData?.id}/notes`
`/facility/${facilityId}/patient/${patientId}/notes`
)
: setShowPatientNotesPopup(true)
}
Expand Down

0 comments on commit bd417fc

Please sign in to comment.