Skip to content

Commit

Permalink
only show groups with logo
Browse files Browse the repository at this point in the history
  • Loading branch information
timqian committed Jul 5, 2019
1 parent a55116e commit 5d49767
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Index extends React.Component {

render() {
const { groups } = this.props;


return (
<div>
<Head title="wewe" description="open group chat to the world" />
Expand All @@ -36,7 +38,7 @@ class Index extends React.Component {
</div>

<div className="section container">
<ChatCards groups={groups} />
<ChatCards groups={groups.filter(group => group.logoUrl)} />
</div>
</div>
<Footer />
Expand Down

0 comments on commit 5d49767

Please sign in to comment.