Skip to content

Commit

Permalink
fix: requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops committed Sep 9, 2024
1 parent 09c7782 commit 3b36aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ export const useNomPoolBondWizard = () => {
}, [balance, existentialDeposit, fakeFeeEstimate])

const inputErrorMessage = useMemo(() => {
if (isSoloStaking)
return t("An account cannot do both regular staking and nomination pool staking")
if (isSoloStaking) return t("Account is already staking")

if (!currentPool && poolState?.isFull) return t("This nomination pool is full")
if (!currentPool && poolState && !poolState.isOpen) return t("This nomination pool is not open")
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/ui/domains/Staking/useStakingBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const useStakingBanner = () => {

if (lsdTokenBases.includes(token.id))
result = evmLsdStakingTokenEligible({ token, addresses })
else result = false

return (
result &&
!hideBannerSetting.includes(
Expand Down

0 comments on commit 3b36aa5

Please sign in to comment.