Skip to content

Commit

Permalink
User creation form bug fix (#9406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan authored Dec 13, 2024
1 parent 732ccd6 commit 376eb70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Users/UserAddEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ const UserAddEditForm = (props: UserProps) => {
)}
</>
)}
{includedFields?.includes("local_body") && (
{showLocalbody && includedFields?.includes("local_body") && (
<>
{isLocalbodyLoading ? (
<CircularProgress />
Expand Down
2 changes: 0 additions & 2 deletions src/components/Users/UserFormValidations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ export const newUserFields: Array<keyof UserForm> = [
"qualification",
"doctor_experience_commenced_on",
"doctor_medical_council_registration",
"weekly_working_hours",
"video_connect_link",
];

export const editUserFields: Array<keyof UserForm> = [
Expand Down

0 comments on commit 376eb70

Please sign in to comment.