Prior PRs slightly broke the user invites. When a user was already in a system, it was supposed to just assign them to the project and return the existing user for insertion into the User Lists, displaying a toast pop up like ("The user is already in the system, but we've added them to the project for you..."
To test, create a project and invite a user who is already in the system but not yet assigned to the project. Ensure that the user appears in the list and you get the toast. Then, invite a brand new user into the project. Ensure that you get the "User invited" toast and the user appears.
Prior PRs slightly broke the user invites. When a user was already in a system, it was supposed to just assign them to the project and return the existing user for insertion into the User Lists, displaying a toast pop up like ("The user is already in the system, but we've added them to the project for you..."
To test, create a project and invite a user who is already in the system but not yet assigned to the project. Ensure that the user appears in the list and you get the toast. Then, invite a brand new user into the project. Ensure that you get the "User invited" toast and the user appears.