Commit ae86fefe authored by Moody Salem's avatar Moody Salem

fix: do not reverse the proposals list in place

parent 8901605c
...@@ -251,17 +251,20 @@ export default function Vote() { ...@@ -251,17 +251,20 @@ export default function Vote() {
</TYPE.subHeader> </TYPE.subHeader>
</EmptyProposals> </EmptyProposals>
)} )}
{allProposals?.reverse()?.map((p: ProposalData) => { {allProposals
return ( ?.slice(0)
<Proposal as={Link} to={`/vote/${p.governorIndex}/${p.id}`} key={`${p.governorIndex}${p.id}`}> ?.reverse()
<ProposalNumber> ?.map((p: ProposalData) => {
{p.governorIndex}.{p.id} return (
</ProposalNumber> <Proposal as={Link} to={`/vote/${p.governorIndex}/${p.id}`} key={`${p.governorIndex}${p.id}`}>
<ProposalTitle>{p.title}</ProposalTitle> <ProposalNumber>
<ProposalStatus status={p.status} /> {p.governorIndex}.{p.id}
</Proposal> </ProposalNumber>
) <ProposalTitle>{p.title}</ProposalTitle>
})} <ProposalStatus status={p.status} />
</Proposal>
)
})}
</TopSection> </TopSection>
<TYPE.subHeader color="text3"> <TYPE.subHeader color="text3">
<Trans>A minimum threshold of 0.25% of the total UNI supply is required to submit proposals</Trans> <Trans>A minimum threshold of 0.25% of the total UNI supply is required to submit proposals</Trans>
......
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