Skip to content

Commit

Permalink
fix: do not put the selected validator as first on the list
Browse files Browse the repository at this point in the history
  • Loading branch information
qperrot committed Jan 13, 2025
1 parent 80a46be commit 24c3120
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 24c3120

Please sign in to comment.