Skip to content

Commit

Permalink
Filter deprecated stake policies
Browse files Browse the repository at this point in the history
From Discover tab only, in case they have an open stake position already.
  • Loading branch information
Jon-edge committed Nov 22, 2024
1 parent c4c93a1 commit 6c53cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/scenes/Staking/EarnScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const EarnScene = (props: Props) => {

await Promise.all(
stakePlugins.map(async stakePlugin => {
const stakePolicies = stakePlugin.getPolicies({ pluginId })
const stakePolicies = stakePlugin.getPolicies({ pluginId }).filter(stakePolicy => !stakePolicy.deprecated)

await Promise.all(
stakePolicies.map(async stakePolicy => {
Expand Down

0 comments on commit 6c53cf9

Please sign in to comment.