Don't append username to the user's name if it's already there

This commit is contained in:
Brady Wetherington 2023-01-31 17:44:09 -08:00
parent b1179c7b1e
commit 02ca5248b1

View file

@ -327,8 +327,8 @@
item_icon = '';
}
// display the username if it's checked out to a user
if (value.username) {
// display the username if it's checked out to a user, but don't do it if the username's there already
if (value.username && !value.name.match('\\(') && !value.name.match('\\)')) {
value.name = value.name + ' (' + value.username + ')';
}