From 02b14d33a6814589d4dbb96973c4731d12f18d2b Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Thu, 6 Dec 2018 13:45:29 +0100 Subject: [PATCH] If user login equals user email, only show the email once #14341 --- public/app/core/components/Picker/UserPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/components/Picker/UserPicker.tsx b/public/app/core/components/Picker/UserPicker.tsx index f78cf69bf5e..f80a3fc135f 100644 --- a/public/app/core/components/Picker/UserPicker.tsx +++ b/public/app/core/components/Picker/UserPicker.tsx @@ -40,7 +40,7 @@ export class UserPicker extends Component { .then(result => { return result.map(user => ({ id: user.userId, - label: `${user.login} - ${user.email}`, + label: user.login === user.email ? user.login : `${user.login} - ${user.email}`, avatarUrl: user.avatarUrl, login: user.login, }));