Skip to content

Commit ef35fd0

Browse files
authored
Fix validation check on user creation page (ohcnetwork#5116)
1 parent f9c709d commit ef35fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Users/UserAdd.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export const UserAdd = (props: UserProps) => {
513513
}
514514
return;
515515
case "local_body":
516-
if (!Number(state.form[field])) {
516+
if (showLocalbody && !Number(state.form[field])) {
517517
errors[field] = "Please select the local body";
518518
invalidForm = true;
519519
}

0 commit comments

Comments
 (0)