Skip to content

Commit

Permalink
Add message for committee empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-ish committed Jan 12, 2021
1 parent c89318a commit ddbfa2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,17 @@ export class Login extends React.Component<Props, State> {
const defaulted = committees || {} as Record<CommitteeID, CommitteeData>;
const owned = _.keys(defaulted);

return (
return (owned.length > 0) ?
(
<List relaxed>
{owned.map(k => renderCommittee(k, defaulted[k]))}
</List>
) : (
<Header as='h4'> No committees created
<Header.Subheader>
Create a new committee and it'll appear here!
</Header.Subheader>
</Header>
);
}

Expand Down

0 comments on commit ddbfa2d

Please sign in to comment.