From 5349454a9ef00c7e0e4c151adccad25f0ffbf5ff Mon Sep 17 00:00:00 2001 From: ndkazu Date: Tue, 26 Mar 2024 14:27:17 +0900 Subject: [PATCH] Problem with council page not refreshing --- fs-dapp_2.0/src/components/pages/Council.tsx | 18 +++++++----------- fs-dapp_2.0/src/components/pages/Roles.tsx | 10 +++++++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fs-dapp_2.0/src/components/pages/Council.tsx b/fs-dapp_2.0/src/components/pages/Council.tsx index d1c6a0c1..9a68564e 100644 --- a/fs-dapp_2.0/src/components/pages/Council.tsx +++ b/fs-dapp_2.0/src/components/pages/Council.tsx @@ -41,7 +41,8 @@ export default function Council() { let acc_list = proposals; if (acc && !acc_list.includes(acc1 as InjectedAccountWithMeta) && acc1){ - acc_list.push(acc1); + acc_list.push(acc1); + dispatch1({type:`SET_PROPOSALS`,payload:[]}); dispatch1({type:`SET_PROPOSALS`,payload:acc_list}); @@ -96,12 +97,14 @@ export default function Council() { if (hash.length > 0) { setHash0(hash); update() + console.log(`Number of active proposals: ${proposals.length}`) } }); }, [hash0,blocks,selectedAccount,api]); + return(
- } - endMessage={It is all, nothing more 🤐} - scrollableTarget="scrollableDiv" - > + ( + style={{ width: 300, height:120}}> {item.name}

} @@ -136,7 +132,7 @@ export default function Council() { /> -
+