IntersectMBO / govtool

šŸ”© GovTool and utilities monorepo.
https://gov.tools
Apache License 2.0
14 stars 9 forks source link

šŸ› Endless Poll Creation Loop Displays Multiple Results #2357

Open kneerose opened 1 week ago

kneerose commented 1 week ago

Area

Proposal Pillar

Domain

dev-sanchogov.tools

Which wallet were you using?

No response

Context

While attempting to view the poll results for a proposal, I noticed that after closing a poll, the "Add Poll" button becomes visible. This allows a new poll to be added, which generates another set of results. Repeating this process results in an endless loop where multiple poll results are displayed.

Steps to reproduce

  1. Connect your wallet.
  2. Create a new proposal or navigate to an existing one.
  3. Add a poll.
  4. Close the poll.
  5. Notice that the "Add Poll" button reappears and allows a new poll to be added.
  6. Repeat the process and observe that each cycle generates a new poll result.

Actual behavior

The system allows multiple poll results to be generated as polls can be repeatedly added and closed. https://dev-sanchonet.govtool.byron.network/proposal_discussion/2029 image

Expected behavior

The "Add Poll" action should be restricted by the API once the poll has been closed, preventing further additions. Alternatively, only the latest poll result should be visible, and multiple results should not be displayed.