AvatarPopup: Show profile name if we have it

This commit is contained in:
Scott Nonnenberg 2020-07-27 11:07:09 -07:00
parent 5a79ed1c60
commit 7ef5dc6401

View file

@ -42,7 +42,9 @@ export const AvatarPopup = (props: Props) => {
<div className="module-avatar-popup__profile">
<Avatar {...props} size={52} />
<div className="module-avatar-popup__profile__text">
<div className="module-avatar-popup__profile__name">{title}</div>
<div className="module-avatar-popup__profile__name">
{profileName || title}
</div>
{shouldShowNumber ? (
<div className="module-avatar-popup__profile__number">
{phoneNumber}