Skip to content

Commit

Permalink
NCL-8208 Display 'SA' label only for service-account usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikk0123 committed Oct 10, 2023
1 parent 9d162e6 commit e35ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Username/Username.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Username = ({ text, length = 20 }: IUsernameProps) => {
return text !== resultText ? (
<TooltipWrapper tooltip={text}>
<span>
<Label isCompact>SA</Label> {resultText}
{text.startsWith(removeKeyword) && <Label isCompact>SA</Label>} {resultText}
</span>
</TooltipWrapper>
) : (
Expand Down

0 comments on commit e35ffef

Please sign in to comment.