Skip to content

Commit

Permalink
feat: remove stake action if pool is not stakable (#4245)
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo authored Sep 26, 2023
1 parent 8023e3c commit 9cbd723
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/tables/PoolsTable/PoolsTableActionSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ function isActionDisabled(action: PoolAction) {
PoolAction.Stake,
PoolAction.MigrateGauge,
];
return isDeprecated && actionsToDisable.includes(action);
const isStakablePool =
POOLS.Stakable.VotingGaugePools.includes(props.pool.id) ||
POOLS.Stakable.AllowList.includes(props.pool.id);
return (
(isDeprecated && actionsToDisable.includes(action)) ||
(!isStakablePool && action === PoolAction.Stake)
);
}
const menuItems = computed(() => {
Expand Down

1 comment on commit 9cbd723

@vercel
Copy link

@vercel vercel bot commented on 9cbd723 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.