Skip to content

Commit

Permalink
Made General Instructions field in Consultation Form non mandatory (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
JOSHIK27 authored Aug 21, 2024
1 parent 0cd6412 commit a65681e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
invalidForm = true;
}
return;
case "consultation_notes":
if (!state.form[field]) {
errors[field] = t("field_required");
invalidForm = true;
} else if (!state.form[field].replace(/\s/g, "").length) {
errors[field] = "Consultation notes can not be empty";
invalidForm = true;
}
return;
case "is_telemedicine":
if (
state.form.admitted_to === "Home Isolation" &&
Expand Down Expand Up @@ -1405,7 +1396,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
>
<TextAreaFormField
label="General Instructions (Advice)"
required
placeholder="Consultation Notes"
{...field("consultation_notes")}
/>
Expand Down

0 comments on commit a65681e

Please sign in to comment.