Skip to content

Commit

Permalink
Fix validation check on user creation page (#5116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Mar 16, 2023
1 parent f9c709d commit ef35fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Users/UserAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export const UserAdd = (props: UserProps) => {
}
return;
case "local_body":
if (!Number(state.form[field])) {
if (showLocalbody && !Number(state.form[field])) {
errors[field] = "Please select the local body";
invalidForm = true;
}
Expand Down

0 comments on commit ef35fd0

Please sign in to comment.