From 30c7c1eec402432fb8808b4393fdaeac56a0491a Mon Sep 17 00:00:00 2001 From: Crypto Minion <154598612+jrwbabylonlab@users.noreply.github.com> Date: Fri, 20 Dec 2024 23:23:44 +1100 Subject: [PATCH] Hide button after unbonding or withdraw requested (#535) * fix: unbonding or transition button should be hidden after unboning requested * fix: hide withdraw button if in withdraw submitted state --- src/app/components/Delegations/DelegationActions.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/components/Delegations/DelegationActions.tsx b/src/app/components/Delegations/DelegationActions.tsx index bbd806be..fe4cf34c 100644 --- a/src/app/components/Delegations/DelegationActions.tsx +++ b/src/app/components/Delegations/DelegationActions.tsx @@ -33,7 +33,10 @@ export const DelegationActions: React.FC = ({ } // Unbonded - if (state === DelegationState.UNBONDED) { + if ( + state === DelegationState.UNBONDED && + intermediateState !== DelegationState.INTERMEDIATE_WITHDRAWAL + ) { return (