Skip to content

Commit

Permalink
Merge pull request #8885 from LedgerHQ/bugfix/cardano-selected-show-all
Browse files Browse the repository at this point in the history
fix: do not put the selected validator as first on the list
  • Loading branch information
qperrot authored Jan 15, 2025
2 parents edd7bfb + 24c3120 commit 04af7d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-trains-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

fix place in list for selected validator cardano
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,8 @@ const ValidatorField = ({ account, delegation, onChangeValidator, selectedPoolId
data={
showAll
? [
currentPool[0],
...defaultPool.filter(p => p !== currentPool[0]),
...pools.filter(
p =>
p &&
!poolIdsToFilterFromAllPools.includes(p.poolId) &&
p !== currentPool[0],
),
...defaultPool,
...pools.filter(p => p && !poolIdsToFilterFromAllPools.includes(p.poolId)),
]
: currentPool
}
Expand Down

0 comments on commit 04af7d7

Please sign in to comment.