Browse Source

fix council

Joystream Stats 4 years ago
parent
commit
f4b42cef24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Dashboard/index.tsx

+ 1 - 1
src/components/Dashboard/index.tsx

@@ -8,7 +8,7 @@ import { IState } from "../../types";
 
 const Dashboard = (props: IState) => {
   const { block, councils, domain, handles, members, proposals } = props;
-  const council = councils[councils.length - 1];
+  const council = councils[councils.length - 1] || []
 
   const findHandle = (id: number) => {
     const member = members.find((m) => m.id === id);