diff --git a/src/components/UserLabel/UserLabel.tsx b/src/components/UserLabel/UserLabel.tsx index 246c827835..d3e4e99f82 100644 --- a/src/components/UserLabel/UserLabel.tsx +++ b/src/components/UserLabel/UserLabel.tsx @@ -41,16 +41,9 @@ export const UserLabel = React.forwardRef( let avatarProps; if (typeof avatar === 'string') { - if (!avatar && typeof children === 'string') { - avatarProps = { - imgUrl: avatar, - text: children, - }; - } else { - avatarProps = { - imgUrl: avatar, - }; - } + avatarProps = { + imgUrl: avatar, + }; } else if (avatar && !React.isValidElement(avatar)) { avatarProps = avatar; } else if (!avatar && typeof children === 'string') {