update roles dropdown case

This commit is contained in:
Sidney Alcantara
2021-09-20 17:24:14 +10:00
parent 9eea703466
commit 4a02555d9e

View File

@@ -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>
);
}