Skip to content

Commit

Permalink
positions: sort by value (#5119)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarbarrera authored Oct 19, 2023
1 parent a10acd3 commit dc57208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/buildWalletSections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const withPositionsSection = () => {

const result: PositionExtraData[] = [];
const sortedPositions = positionsObj?.positions?.sort((a, b) =>
a.dapp.name.localeCompare(b.dapp.name)
a.totals.totals.amount > b.totals.totals.amount ? -1 : 1
);
sortedPositions?.forEach((position, index) => {
const listData = {
Expand Down

0 comments on commit dc57208

Please sign in to comment.