From 6c53cf9cb08d182aca981a23ad18f261c609c1c9 Mon Sep 17 00:00:00 2001 From: Jon Tzeng Date: Fri, 22 Nov 2024 10:15:19 -0800 Subject: [PATCH] Filter deprecated stake policies From Discover tab only, in case they have an open stake position already. --- src/components/scenes/Staking/EarnScene.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/scenes/Staking/EarnScene.tsx b/src/components/scenes/Staking/EarnScene.tsx index 0d4e8e88bf2..1fe51338009 100644 --- a/src/components/scenes/Staking/EarnScene.tsx +++ b/src/components/scenes/Staking/EarnScene.tsx @@ -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 => {