diff --git a/src/components/Patient/EncounterQuestionnaire.tsx b/src/components/Patient/EncounterQuestionnaire.tsx index a74a5f240af..10799afe296 100644 --- a/src/components/Patient/EncounterQuestionnaire.tsx +++ b/src/components/Patient/EncounterQuestionnaire.tsx @@ -47,7 +47,7 @@ export default function EncounterQuestionnaire({ patient={encounter.patient} encounter={encounter} fetchPatientData={() => {}} - disabled={true} + disableButtons={true} />
diff --git a/src/components/Patient/PatientInfoCard.tsx b/src/components/Patient/PatientInfoCard.tsx index 21fa39b3908..e9e58409fd3 100644 --- a/src/components/Patient/PatientInfoCard.tsx +++ b/src/components/Patient/PatientInfoCard.tsx @@ -59,11 +59,11 @@ export interface PatientInfoCardProps { patient: Patient; encounter: Encounter; fetchPatientData?: (state: { aborted: boolean }) => void; - disabled?: boolean; + disableButtons?: boolean; } export default function PatientInfoCard(props: PatientInfoCardProps) { - const { patient, encounter, disabled = false } = props; + const { patient, encounter, disableButtons = false } = props; const { t } = useTranslation(); const queryClient = useQueryClient(); @@ -325,7 +325,7 @@ export default function PatientInfoCard(props: PatientInfoCardProps) { ) } - {!disabled ? ( + {!disableButtons ? ( - {!disabled && ( + {!disableButtons && ( <>