Skip to content

Commit

Permalink
fix: fix issue where it would attempt to create existing user
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Nov 14, 2023
1 parent 626879a commit be665f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function UsersPage() {
const userId = users.find((item) => item.email === val.email)?.id;
if (userId) {
await updateUserRole(userId, [val.role]);
return;
}
const userName = `${val.firstName} ${val.lastName}`;
toastSuccess(`${userName} invited successfully`);
Expand Down

0 comments on commit be665f7

Please sign in to comment.