Commit ae86fefe authored by Moody Salem's avatar Moody Salem

fix: do not reverse the proposals list in place

parent 8901605c
...@@ -251,7 +251,10 @@ export default function Vote() { ...@@ -251,7 +251,10 @@ export default function Vote() {
</TYPE.subHeader> </TYPE.subHeader>
</EmptyProposals> </EmptyProposals>
)} )}
{allProposals?.reverse()?.map((p: ProposalData) => { {allProposals
?.slice(0)
?.reverse()
?.map((p: ProposalData) => {
return ( return (
<Proposal as={Link} to={`/vote/${p.governorIndex}/${p.id}`} key={`${p.governorIndex}${p.id}`}> <Proposal as={Link} to={`/vote/${p.governorIndex}/${p.id}`} key={`${p.governorIndex}${p.id}`}>
<ProposalNumber> <ProposalNumber>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment