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

Fix : Minimum value in forms should be greater than 0 #7273

Merged
merged 9 commits into from
May 7, 2024
5 changes: 5 additions & 0 deletions src/Components/Facility/TriageForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export const TriageForm = ({ facilityId, id }: Props) => {
value={state.form.num_patients_visited}
onChange={handleFormFieldChange}
error={state.errors.num_patients_visited}
min={0}
/>
</div>
<div>
Expand All @@ -257,6 +258,7 @@ export const TriageForm = ({ facilityId, id }: Props) => {
value={state.form.num_patients_home_quarantine}
onChange={handleFormFieldChange}
error={state.errors.num_patients_home_quarantine}
min={0}
/>
</div>
<div>
Expand All @@ -267,6 +269,7 @@ export const TriageForm = ({ facilityId, id }: Props) => {
value={state.form.num_patients_isolation}
onChange={handleFormFieldChange}
error={state.errors.num_patients_isolation}
min={0}
/>
</div>
<div>
Expand All @@ -277,6 +280,7 @@ export const TriageForm = ({ facilityId, id }: Props) => {
value={state.form.num_patient_referred}
onChange={handleFormFieldChange}
error={state.errors.num_patient_referred}
min={0}
/>
</div>
<div>
Expand All @@ -287,6 +291,7 @@ export const TriageForm = ({ facilityId, id }: Props) => {
value={state.form.num_patient_confirmed_positive}
onChange={handleFormFieldChange}
error={state.errors.num_patient_confirmed_positive}
min={0}
/>
</div>
</div>
Expand Down
Loading