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
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.
Detailed description
On
index.jsfile :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.
Possible implementation
Maybe we can make something like :
Additional information
No response
Code of Conduct