Skip to content

Commit

Permalink
Fix Tests LLD
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger committed May 14, 2024
1 parent 938bf11 commit 7857988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function useMarket() {
const toggleFilterByStarredAccounts = useCallback(() => {
if (starredMarketCoins.length > 0 || starFilterOn) {
const starred = starFilterOn ? [] : starredMarketCoins;
refresh({ starred, search: "" });
refresh({ starred, search: "", page: 1 });
}
}, [refresh, starFilterOn, starredMarketCoins]);

Expand Down
2 changes: 1 addition & 1 deletion libs/ledger-live-common/src/market/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function fetchList({
to: counterCurrency,
sort: getSortParam(order, range),
...(search.length > 1 && { filter: search }),
...(starred.length > 1 && { ids: starred.join(",") }),
...(starred.length > 0 && { ids: starred.join(",") }),
...(liveCoinsList.length > 1 && { ids: liveCoinsList.join(",") }),
...([Order.topLosers, Order.topGainers].includes(order) && { top: 100 }),
},
Expand Down

0 comments on commit 7857988

Please sign in to comment.