mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
update roles dropdown case
This commit is contained in:
@@ -109,10 +109,10 @@ export default function UserItem({
|
||||
renderValue: (_) => {
|
||||
if (Array.isArray(value)) {
|
||||
if (value.length === 1) return value[0];
|
||||
if (value.length > 1) return `${value.length} Roles`;
|
||||
if (value.length > 1) return `${value.length} roles`;
|
||||
return (
|
||||
<Typography variant="inherit" color="text.disabled">
|
||||
No Roles
|
||||
No roles
|
||||
</Typography>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user