mento-protocol / governance-ui

An open source interface for the Mento protocol governance
https://governance.mento.org
0 stars 0 forks source link

Fix(155): Voting update & My Locks page fix #161

Closed RyRy79261 closed 1 month ago

RyRy79261 commented 1 month ago

Description

This PR resolves a data staleness issue when voting on a proposal.

This PR additionally resolves an issue with the My Locks page, where in the event of an account not having any locks, a destructuring error would inject an empty Partial<Lock> which would cause page render issues.

This is achieved by creating a block number watcher specifically when using the useProposal hook. This syncs the Apollo checks with the Tanstack queries.

Related issues

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2024 1:26pm
denviljclarke commented 1 month ago

Nice one @RyRy79261! Small thing I noticed with the loader when voting. It seems to be white so it's invisible.

Screenshot 2024-06-04 at 2 07 26 PM