diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index a493d354be2..d7bc5f67a70 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -325,6 +325,13 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { fetchPatientName(); }, [dispatchAction, patientId]); + useEffect(() => { + dispatch({ + type: "set_form", + form: { ...state.form, encounter_date: new Date() }, + }); + }, []); + const hasSymptoms = !!state.form.symptoms.length && !state.form.symptoms.includes(1); const isOtherSymptomsSelected = state.form.symptoms.includes(9);