diff --git a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/ApproveTxModal/index.jsx b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/ApproveTxModal/index.jsx index dc317ccb..502d90da 100644 --- a/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/ApproveTxModal/index.jsx +++ b/src/routes/safe/components/Transactions/TxsTable/ExpandedTx/ApproveTxModal/index.jsx @@ -70,6 +70,7 @@ const ApproveTxModal = ({ const [gasCosts, setGasCosts] = useState('< 0.001') const { title, description } = getModalTitleAndDescription(thresholdReached) const oneConfirmationLeft = !thresholdReached && tx.confirmations.size + 1 === threshold + const isTheTxReadyToBeExecuted = oneConfirmationLeft ? true : thresholdReached useEffect(() => { let isCurrent = true @@ -109,7 +110,7 @@ const ApproveTxModal = ({ notifiedTransaction: TX_NOTIFICATION_TYPES.CONFIRMATION_TX, enqueueSnackbar, closeSnackbar, - approveAndExecute: canExecute && approveAndExecute && oneConfirmationLeft, + approveAndExecute: canExecute && approveAndExecute && isTheTxReadyToBeExecuted, }) onClose() }