From 6652753fe6cb6c18d8ab660afa46a9d01f962d56 Mon Sep 17 00:00:00 2001 From: binarybaron Date: Thu, 25 Jun 2026 10:55:03 +0200 Subject: [PATCH] fix(gui): always show lock-tx description on BitcoinLockTxInMempoolPage --- .../in_progress/BitcoinLockTxInMempoolPage.tsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src-gui/src/renderer/components/pages/swap/swap/in_progress/BitcoinLockTxInMempoolPage.tsx b/src-gui/src/renderer/components/pages/swap/swap/in_progress/BitcoinLockTxInMempoolPage.tsx index 1d484db1be..d316bad660 100644 --- a/src-gui/src/renderer/components/pages/swap/swap/in_progress/BitcoinLockTxInMempoolPage.tsx +++ b/src-gui/src/renderer/components/pages/swap/swap/in_progress/BitcoinLockTxInMempoolPage.tsx @@ -3,9 +3,6 @@ import { formatConfirmations } from "utils/formatUtils"; import BitcoinTransactionInfoBox from "renderer/components/pages/swap/swap/components/BitcoinTransactionInfoBox"; import { Box, DialogContentText } from "@mui/material"; -// This is the number of blocks after which we consider the swap to be at risk of being unsuccessful -const BITCOIN_CONFIRMATIONS_WARNING_THRESHOLD = 2; - export default function BitcoinLockTxInMempoolPage({ btc_lock_confirmations, btc_lock_txid, @@ -20,10 +17,7 @@ export default function BitcoinLockTxInMempoolPage({ return ( <> - {(btc_lock_confirmations === undefined || - btc_lock_confirmations < BITCOIN_CONFIRMATIONS_WARNING_THRESHOLD) && ( - {description()} - )} + {description()} - Most makers require one confirmation before locking their Monero. - After they lock their funds and the Monero transaction receives - one confirmation, the swap will proceed to the next step. -
- Confirmations: {formatConfirmations(btc_lock_confirmations)} - - } + additionalContent={<>{formatConfirmations(btc_lock_confirmations)}} />