Skip to content

Commit

Permalink
fix: 🐛 Market Filters (#7814)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger authored Sep 13, 2024
1 parent 5762905 commit 5203d7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-tigers-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Fix Market Starred filter
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function useMarket() {

const updateSearch = useCallback(
(value: string) => {
refresh({ search: value, starred: [], liveCompatible: false });
refresh({ search: value });
},
[refresh],
);
Expand All @@ -116,7 +116,7 @@ export function useMarket() {
const toggleFilterByStarredAccounts = useCallback(() => {
if (starredMarketCoins.length > 0 || starFilterOn) {
const starred = starFilterOn ? [] : starredMarketCoins;
refresh({ starred, search: "", page: 1 });
refresh({ starred, page: 1 });
}
}, [refresh, starFilterOn, starredMarketCoins]);

Expand Down

0 comments on commit 5203d7f

Please sign in to comment.