Skip to content

Commit

Permalink
refactor(WebexAvatar): send null when there is no status
Browse files Browse the repository at this point in the history
  • Loading branch information
lalli-flores committed Feb 18, 2020
1 parent 3ab806b commit 4c823e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/WebexAvatar/WebexAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {usePerson} from '../hooks';
*/
export default function WebexAvatar({personID, displayStatus}) {
const {avatar, displayName, status} = usePerson(personID);
const type = displayStatus ? status : undefined;
const type = displayStatus ? status : null;

return <Avatar src={avatar} title={displayName} type={type} alt={displayName} />;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ exports[`Webex Avatar component matches snapshot with no status 1`] = `
src="https://4b4dc97add6b1dcc891a-54bf3b4e4579920861d23cc001530c2a.ssl.cf1.rackcdn.com/V1~b33cb17c-42e3-41ac-a045-497e4002646c~b18d4572b17a4e98a16708797343ee7a~1600"
theme={null}
title="Webex Component User"
type=""
type={null}
/>
`;

Expand Down

0 comments on commit 4c823e6

Please sign in to comment.