Skip to content

Commit

Permalink
fix: revert to using nominationPools config key to access nomination …
Browse files Browse the repository at this point in the history
…pools details (#1730)
  • Loading branch information
chidg authored Dec 6, 2024
1 parent 869ed0c commit 0e2f457
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useDetaultNomPoolId = (chainId?: ChainId | null | undefined) => {
const remoteConfig = useRemoteConfig()

return useMemo(() => {
if (!chainId || chainId === "bittensor") return null
return remoteConfig.stakingPools?.[chainId]?.[0] ?? null
}, [chainId, remoteConfig.stakingPools])
if (!chainId) return null
return remoteConfig.nominationPools?.[chainId]?.[0] ?? null
}, [chainId, remoteConfig.nominationPools])
}

0 comments on commit 0e2f457

Please sign in to comment.