You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
const[hasVoted,setHasVoted]=useState(false);
...
constcheckIfUserHasVoted=async()=>{try{// Actually it only check the first proposal, we need to check all proposals// and dispatch statesconsthasVoted=awaitvote.hasVoted(proposals[0].proposalId,address);setHasVoted(hasVoted);
...
We check only the first DAO proposals !
I suggest to update this function and the setHasVoted state logic to be able to list all proposals states.
Context
This is a requiered feature because the dapp actually set state only for the first proposal.