Skip to content

Commit

Permalink
fix: catch accidentally leftover invites for when an account is delet…
Browse files Browse the repository at this point in the history
…ed by us
  • Loading branch information
ChasNelson1990 committed Sep 1, 2022
1 parent 235d16a commit 8d49380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/ProjectsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,10 @@ export const ProjectsView = ({
newUsers[key] = newUsers[key]
.filter(({ username }) => !isTrustedServices(username))
.map((user) => ({
name: invitees.find(({ email }) => email === user.username).name,
name: invitees.find(({ email }) => email === user.username)?.name,
...user,
}));
}))
.filter(({ name }) => name !== undefined);
}
setProjectUsers(newUsers);
}
Expand Down

0 comments on commit 8d49380

Please sign in to comment.