diff --git a/fs-dapp_2.0/src/components/pages/Council.tsx b/fs-dapp_2.0/src/components/pages/Council.tsx
index fa06c273..b3e9e40c 100644
--- a/fs-dapp_2.0/src/components/pages/Council.tsx
+++ b/fs-dapp_2.0/src/components/pages/Council.tsx
@@ -38,7 +38,7 @@ export default function Council() {
let acc_list = proposals;
if (acc && !acc_list.includes(acc1 as InjectedAccountWithMeta) && acc1){
acc_list.push(acc1);
- dispatch1({type:`SET_PROPOSALS`,payload:[]});
+
dispatch1({type:`SET_PROPOSALS`,payload:acc_list});
@@ -77,19 +77,10 @@ export default function Council() {
if (hash.length > 0) {
setHash0(hash);
+ dispatch1({type:`SET_PROPOSALS`,payload:[]});
+ dispatch1({type:`SET_DATAS`,payload:[]});
+
update()
- let tdata0:DataType[]=[];
- datas.forEach(elemnt=>{
- if (hash0.includes(elemnt.hash) && !tdata0.includes(elemnt) && elemnt.status!==`AWAITING`){
- tdata0.push(elemnt);
- console.log(`Number of active proposals: ${tdata0.length}`)
- }
- if (hash0.includes(elemnt.hash) && !tdata0.includes(elemnt)){
- tdata0.push(elemnt);
- console.log(`Number of active proposals: ${tdata0.length}`)
- }else{tdata0=datas}
- })
- dispatch1({type:`SET_DATAS`,payload:tdata0});
}
@@ -114,11 +105,11 @@ export default function Council() {
renderItem={item => (
Requested Role: {item.role}
Request Status: {item.status}
Requested Role: {item.role}
Request Status: {item.status}
Session is closed: {item.referendum}
@@ -116,8 +116,8 @@ export default function Roles() { -