Skip to content

Commit

Permalink
Fix #2357 Display only last Inactive pool so you will be still in abl…
Browse files Browse the repository at this point in the history
…e to add new poll after you close current
  • Loading branch information
nebojsajsimic committed Dec 5, 2024
1 parent 2b78d9c commit c2de4ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const SingleGovernanceAction = ({ id }) => {

const fetchUnactivePolls = async () => {
try {
const query = `filters[$and][0][proposal_id][$eq]=${proposal?.id}&filters[$and][1][is_poll_active]=false&pagination[page]=1&pagination[pageSize]=25&sort[createdAt]=desc`;
const query = `filters[$and][0][proposal_id][$eq]=${proposal?.id}&filters[$and][1][is_poll_active]=false&pagination[page]=1&pagination[pageSize]=1&sort[createdAt]=desc`;
const { polls, pgCount, total } = await getPolls({ query: query });
if (!polls) return;
setUnactivePollList(polls);
Expand Down

0 comments on commit c2de4ea

Please sign in to comment.