Skip to content

Commit

Permalink
Fix: exception in user add submit handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Sep 15, 2024
1 parent c755af6 commit 1bc41ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/users/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const UserDialog = ({ refresh }) => {
await addUser({
name: e.target.name.value,
email: e.target.email.value,
role: e.target.role.value
role
})
.unwrap()
.then(() => {
Expand Down Expand Up @@ -58,7 +58,7 @@ const UserDialog = ({ refresh }) => {
className="sm:h-14"
label="Select Role"
name="role"
options={userRoleOptions}
options={userRoleOptions.filter((option) => option.key !== "GROUP")}
value={role}
onChange={(e) => setRole(e.target.value)}
/>
Expand Down

0 comments on commit 1bc41ec

Please sign in to comment.