From e35ffef73186e4dfe7ad8b23a6739b927645a46e Mon Sep 17 00:00:00 2001 From: Patrik Korytar Date: Tue, 10 Oct 2023 13:08:46 +0200 Subject: [PATCH] NCL-8208 Display 'SA' label only for service-account usernames --- src/components/Username/Username.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Username/Username.tsx b/src/components/Username/Username.tsx index c7540edc..780f6782 100644 --- a/src/components/Username/Username.tsx +++ b/src/components/Username/Username.tsx @@ -21,7 +21,7 @@ export const Username = ({ text, length = 20 }: IUsernameProps) => { return text !== resultText ? ( - {resultText} + {text.startsWith(removeKeyword) && } {resultText} ) : (