Skip to content

Commit

Permalink
fix: sort active crm stakes by start timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveVodrazka committed Jul 10, 2024
1 parent f694287 commit 83135f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/CarmineStaking/Stakes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ export const Stakes = ({ stakes, veBalance, account }: Props) => {
</TableRow>
</TableHead>
<TableBody>
{active.map((stake, i) => (
<Item stake={stake} key={i} />
))}
{active
.sort((a, b) => b.start - a.start)
.map((stake, i) => (
<Item stake={stake} key={i} />
))}
</TableBody>
</Table>
</TableContainer>
Expand Down

0 comments on commit 83135f6

Please sign in to comment.