From e49db4b14d65d519254f7da93fa6d83c3adc3379 Mon Sep 17 00:00:00 2001 From: Cezary Dryl Date: Fri, 12 Apr 2024 13:40:42 +0200 Subject: [PATCH] fix: changed failed finalize step content --- .../steps/FinalizeStep/FinalizeStep.tsx | 35 ++++++++++++------- .../Motions/steps/FinalizeStep/hooks.tsx | 32 +++++++++++++++++ src/i18n/en.json | 3 +- 3 files changed, 56 insertions(+), 14 deletions(-) diff --git a/src/components/v5/common/ActionSidebar/partials/Motions/steps/FinalizeStep/FinalizeStep.tsx b/src/components/v5/common/ActionSidebar/partials/Motions/steps/FinalizeStep/FinalizeStep.tsx index 17aeed41c9..c16260ef4e 100644 --- a/src/components/v5/common/ActionSidebar/partials/Motions/steps/FinalizeStep/FinalizeStep.tsx +++ b/src/components/v5/common/ActionSidebar/partials/Motions/steps/FinalizeStep/FinalizeStep.tsx @@ -114,7 +114,11 @@ const FinalizeStep: FC = ({ = ({ items={items} className={clsx({ 'mb-6': - !isMotionFinalized || (!isClaimed && canClaimStakes), + !isMotionFailedNotFinalizable && + (!isMotionFinalized || (!isClaimed && canClaimStakes)), })} /> )} @@ -184,18 +189,22 @@ const FinalizeStep: FC = ({ } /> )} - {!isPolling && !isMotionFinalized && !isMotionAgreement && ( -