Skip to content

Commit

Permalink
fix(webexMember): updated member name handling (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parimala032 authored Nov 13, 2024
1 parent 7dcfc02 commit 881ddae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/WebexMember/WebexMember.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default function WebexMember({
const members = useMembers(destinationID, destinationType);
const member = members
.find((itemMember) => itemMember.ID === personID);
const memberName = member?.name || displayName;
const organization = useOrganization(orgID);

const isMuted = member?.muted;
const isSpeaking = member?.speaking;
const isExternal = orgID !== undefined && me.orgID !== undefined && me.orgID !== orgID;
Expand All @@ -64,7 +64,7 @@ export default function WebexMember({
<WebexAvatar personID={personID} displayStatus={displayStatus} className={sc('avatar')} />
<div className={sc('details')}>
<div className={sc('name')}>
{(displayName ?? <Spinner size={18} />) || <i>Name not available</i>}
{(memberName ?? <Spinner size={18} />) || <i>Name not available</i>}
{isGuest && <span className={sc('guest')}> (Guest)</span>}
</div>
{roles.length > 0 && <div className={sc('roles')}>{roles.join(', ')}</div>}
Expand Down

0 comments on commit 881ddae

Please sign in to comment.