From 8608ce2e0eb744e6713820d9c3b4c10e063fcb99 Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Sun, 21 Jan 2024 16:13:10 +0100 Subject: [PATCH] ui: hide cancel button on successful renewal --- src/components/fb/SpendFidelityBondModal.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/fb/SpendFidelityBondModal.tsx b/src/components/fb/SpendFidelityBondModal.tsx index 6194939a..47b8e15a 100644 --- a/src/components/fb/SpendFidelityBondModal.tsx +++ b/src/components/fb/SpendFidelityBondModal.tsx @@ -484,14 +484,16 @@ const RenewFidelityBondModal = ({
- onClose({ txInfo, mustReload: parentMustReload })} - className="flex-1 d-flex justify-content-center align-items-center" - > - {t('global.cancel')} - + {!txInfo && ( + onClose({ txInfo, mustReload: parentMustReload })} + className="flex-1 d-flex justify-content-center align-items-center" + > + {t('global.cancel')} + + )} {lockDate && fidelityBond && timelockedAddress !== undefined && ( {