Skip to content

Commit

Permalink
handle backend returning null for gender (#10614)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 authored Feb 15, 2025
1 parent c6043cb commit 21ecdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Users/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function UserForm({
last_name: userData.last_name,
email: userData.email,
phone_number: userData.phone_number || "",
gender: userData.gender,
gender: userData.gender || undefined,
};
form.reset(formData);
}
Expand Down

0 comments on commit 21ecdf5

Please sign in to comment.