Skip to content

Commit

Permalink
Hide button after unbonding or withdraw requested (#535)
Browse files Browse the repository at this point in the history
* fix: unbonding or transition button should be hidden after unboning requested

* fix: hide withdraw button if in withdraw submitted state
  • Loading branch information
jrwbabylonlab authored Dec 20, 2024
1 parent 0f6a232 commit 30c7c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/Delegations/DelegationActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export const DelegationActions: React.FC<DelegationActionsProps> = ({
}

// Unbonded
if (state === DelegationState.UNBONDED) {
if (
state === DelegationState.UNBONDED &&
intermediateState !== DelegationState.INTERMEDIATE_WITHDRAWAL
) {
return (
<div className="flex justify-end lg:justify-start">
<Button
Expand Down

0 comments on commit 30c7c1e

Please sign in to comment.