diff --git a/src/app/components/Delegations/DelegationActions.tsx b/src/app/components/Delegations/DelegationActions.tsx index e55b125c..bbd806be 100644 --- a/src/app/components/Delegations/DelegationActions.tsx +++ b/src/app/components/Delegations/DelegationActions.tsx @@ -27,6 +27,11 @@ export const DelegationActions: React.FC = ({ const [isPopoverOpen, setIsPopoverOpen] = useState(false); const [anchorEl, setAnchorEl] = useState(null); + // We no longer show the transition button when the unbonding transaction is pending + if (intermediateState === DelegationState.INTERMEDIATE_UNBONDING) { + return null; + } + // Unbonded if (state === DelegationState.UNBONDED) { return ( @@ -48,11 +53,7 @@ export const DelegationActions: React.FC = ({ } // Active, eligible for transition - if ( - state === DelegationState.ACTIVE || - isEligibleForTransition || - state === DelegationState.WITHDRAWN - ) { + if (state === DelegationState.ACTIVE || isEligibleForTransition) { return (
{ switch (state) { case DelegationState.ACTIVE: // active state is shwon return "Stake is active"; + case DelegationState.UNBONDING_REQUESTED: + return "Stake is requesting unbonding"; case DelegationState.UNBONDED: return "Stake has been unbonded"; case DelegationState.WITHDRAWN: