Jelajahi Sumber

fix election stage

Joystream Stats 4 tahun lalu
induk
melakukan
a3c5591fdb

+ 2 - 3
src/components/Council/ElectionStatus.tsx

@@ -4,10 +4,9 @@ import { domain } from "../../config";
 const ElectionStage = (props: {
   termEndsAt: number;
   block: number;
-  stage?: any;
+  stage: any;
 }) => {
   const { block, stage, termEndsAt } = props;
-  console.log(`stage`, stage);
 
   if (!stage) {
     if (!block || !termEndsAt) return <div />;
@@ -38,7 +37,7 @@ const ElectionStatus = (props: {
   councilElection?: { termEndsAt: number; round: number; stage: any };
   block: number;
   show: boolean;
-  stage?: any;
+  stage: any;
   termEndsAt: number;
 }) => {
   const { councilElection, block, termEndsAt, show, stage } = props;

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

@@ -18,7 +18,7 @@ const Council = (props: {
   council: Member[];
   councilElection?: any;
   block: number;
-  stage?: any;
+  stage: any;
   termEndsAt: number;
 }) => {
   const { council, block, councilElection, termEndsAt } = props;