Skip to content

Commit

Permalink
Add check for minimum encounter date in ConsultationForm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Feb 12, 2024
1 parent 22732e1 commit 1228adb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
invalidForm = true;
}
if (
min_encounter_date &&
dayjs(state.form.encounter_date).isBefore(dayjs(min_encounter_date))
) {
errors[
Expand Down

0 comments on commit 1228adb

Please sign in to comment.