Skip to content

Commit

Permalink
refactor: useBondButton, handle nomPools and stakingPools changes fro…
Browse files Browse the repository at this point in the history
…m remote config (#1732)
  • Loading branch information
UrbanWill authored Dec 6, 2024
1 parent 92dc525 commit 53c7590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/extension/src/ui/domains/Staking/Bond/useBondButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export const useBondButton = ({
try {
let isNomPoolStaking = false

let poolId = remoteConfig.stakingPools[token.chain.id]?.[0]
let poolId =
remoteConfig.stakingPools[token.chain.id]?.[0] ||
remoteConfig.nominationPools[token.chain.id]?.[0]

if (!poolId) return [null, false]

Expand Down

0 comments on commit 53c7590

Please sign in to comment.