소스 검색

fix election stage

Joystream Stats 4 년 전
부모
커밋
a3c5591fdb
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      src/components/Council/ElectionStatus.tsx
  2. 1 1
      src/components/Council/index.tsx

+ 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;