@@ -52,7 +52,7 @@ const CouncilGrid = (props: {
const sortCouncil = (consuls) =>
consuls.sort((a, b) =>
- (a.member.handle || "").localeCompare(b.member.handle || "")
+ (a.member?.handle || "").localeCompare(b.member?.handle || "")
);
return (
@@ -27,7 +27,7 @@ const LatestPost = (props: {
>
<div className="mb-2">
{created.isValid() ? created.fromNow() : <span />}
- <User key={author.id} id={author.id} handle={author.handle} />
+ <User key={author?.id} id={author?.id} handle={author?.handle} />
posted in
<Link
to={`/forum/threads/${threadId}`}
@@ -103,7 +103,7 @@ const ProposalRow = (props: {
const classes = useStyles();
const hasToVote = council?.consuls?.filter(
- (c) => !votes.find((v) => v.member.handle === c.member.handle)
+ (c) => !votes.find((v) => v.member?.handle === c.member?.handle)
@@ -47,6 +47,7 @@ const VoteBubble = (props: {
count: number;
}) => {
const { detailed, vote } = props;
+ if (!vote.member) return <div />;
const handle = vote.member.handle;
<Button className="btn-sm p-1" variant={voteStyles[vote.vote]}>