Skip to content

Commit

Permalink
Changed to current date time instead of date time at which app was lo…
Browse files Browse the repository at this point in the history
…aded
  • Loading branch information
shyamprakash123 committed Dec 4, 2023
1 parent 1e37ee4 commit 2d24c63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ export const ConsultationForm = (props: any) => {
fetchPatientName();
}, [dispatchAction, patientId]);

useEffect(() => {
dispatch({
type: "set_form",
form: { ...state.form, admission_date: new Date() },
});
}, []);

const hasSymptoms =
!!state.form.symptoms.length && !state.form.symptoms.includes(1);
const isOtherSymptomsSelected = state.form.symptoms.includes(9);
Expand Down

0 comments on commit 2d24c63

Please sign in to comment.