UI: Multiple team oberver plus bug (#11897)

This commit is contained in:
Jacob Shandling 2023-05-23 16:10:52 -07:00 committed by GitHub
parent 78635b310c
commit c733aca3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,2 @@
- Fix a bug in the users table where users that are observer+ for all of more than one team were
listed as "Various roles"

View File

@ -506,6 +506,9 @@ export const generateRole = (
} else if (listOfRoles.every((role): boolean => role === "observer")) {
// only team observers
return "Observer";
} else if (listOfRoles.every((role): boolean => role === "observer_plus")) {
// only team observers plus
return "Observer+";
}
return "Various"; // no global role and multiple teams