Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed to current date time instead of date time at which app was loaded. #6791

Merged
7 changes: 7 additions & 0 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading