Skip to content

Commit

Permalink
Merge branch 'coronasafe:develop' into issue#5132
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu1902 committed Apr 1, 2023
2 parents 318cb0a + b884349 commit 3c15de9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,14 @@ export const ConsultationForm = (props: any) => {
}
return;
case "consultation_notes":
if (!state.form[field]) {
errors[field] = "Required *";

invalidForm = true;
} else if (!state.form[field].replace(/\s/g, "").length) {
errors[field] = "Consultation notes can not be empty";
invalidForm = true;
if (state.form.consultation_status != 1) {
if (!state.form[field]) {
errors[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":
Expand Down Expand Up @@ -1080,7 +1081,7 @@ export const ConsultationForm = (props: any) => {
</div>

{!isUpdate && (
<div className="col-span-6" ref={fieldRef["bed"]}>
<div className="col-span-6 mb-6" ref={fieldRef["bed"]}>
<FieldLabel>Bed</FieldLabel>
<BedSelect
name="bed"
Expand All @@ -1095,6 +1096,7 @@ export const ConsultationForm = (props: any) => {
)}
</>
)}

<div className="col-span-6" ref={fieldRef["ip_no"]}>
<TextFormField
{...field("ip_no")}
Expand Down

0 comments on commit 3c15de9

Please sign in to comment.