Skip to content

Commit

Permalink
Sort ids
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger committed Jul 18, 2024
1 parent 00e7703 commit 9485dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/market/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export async function fetchList({
to: counterCurrency,
sort: getSortParam(order, range),
...(search.length >= 2 && { filter: search }),
...(starred.length > 0 && { ids: starred.join(",") }),
...(liveCoinsList.length > 1 && { ids: liveCoinsList.join(",") }),
...(starred.length > 0 && { ids: starred.sort().join(",") }),
...(liveCoinsList.length > 1 && { ids: liveCoinsList.sort().join(",") }),
...([Order.topLosers, Order.topGainers].includes(order) && { top: 100 }),
},
});
Expand Down

0 comments on commit 9485dcb

Please sign in to comment.