Skip to content

Commit

Permalink
Merge pull request #314 from stigrune/master
Browse files Browse the repository at this point in the history
Hides the contact icon if empty in config
  • Loading branch information
vzhou842 authored Jul 22, 2019
2 parents fa0966b + 368217d commit b55f228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebar/Contacts/Contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {
const Contacts = ({ contacts }: Props) => (
<div className={styles['contacts']}>
<ul className={styles['contacts__list']}>
{Object.keys(contacts).map((name) => (
{Object.keys(contacts).map((name) => (!contacts[name] ? null : (
<li className={styles['contacts__list-item']} key={name}>
<a
className={styles['contacts__list-item-link']}
Expand All @@ -24,7 +24,7 @@ const Contacts = ({ contacts }: Props) => (
<Icon icon={getIcon(name)} />
</a>
</li>
))}
)))}
</ul>
</div>
);
Expand Down

0 comments on commit b55f228

Please sign in to comment.