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 617735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ProjectsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ 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,
}));
}
Expand Down

0 comments on commit 617735f

Please sign in to comment.