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
Connect your wallet.
Create a new proposal or navigate to an existing one.
Add a poll.
Close the poll.
Notice that the "Add Poll" button reappears and allows a new poll to be added.
Repeat the process and observe that each cycle generates a new poll result.
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.
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
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
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.