Skip to content

Commit

Permalink
fix the proposals count
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Jan 17, 2024
1 parent ba608f2 commit 7b1d909
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions apps/astraplusplus/widget/Common/Modals/Voters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ return (
{Object.keys(votes).length === 0 && (
<span className="text-muted text-center">No votes yet</span>
)}
{votersCount > Object.keys(votes).length && (
<div>
Note: Indexer is currently running behind schedule, and the
expected results may take longer to appear. We appreciate your
patience and apologize for any inconvenience.
</div>
)}
{isCongressDaoID &&
isVotingBodyDao &&
votersCount > Object.keys(votes).length && (
<div>
Note: Indexer is currently running behind schedule, and the
expected results may take longer to appear. We appreciate
your patience and apologize for any inconvenience.
</div>
)}
{Object.keys(votes).map((voterId) => {
const vote =
isCongressDaoID || isVotingBodyDao
Expand Down
1 change: 1 addition & 0 deletions apps/astraplusplus/widget/DAO/Proposals/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ const expensiveWork = () => {
};

Object.keys(my_proposal.vote_counts).forEach((key) => {
if (key === "all") return;
totalVotes.yes += my_proposal.vote_counts[key][0];
totalVotes.no += my_proposal.vote_counts[key][1];
totalVotes.spam += my_proposal.vote_counts[key][2];
Expand Down

0 comments on commit 7b1d909

Please sign in to comment.