txs: do not show slatepack input while cancelling

This commit is contained in:
ardocrat 2024-05-04 03:20:31 +03:00
parent 26f82f3cc7
commit 7a79b88e68

View file

@ -491,7 +491,8 @@ impl WalletTransactions {
} }
// Show transaction Slatepack message response or finalization input. // Show transaction Slatepack message response or finalization input.
if !tx.posting && !tx.data.confirmed && (tx.data.tx_type == TxLogEntryType::TxSent || if !tx.posting && !tx.data.confirmed && !tx.cancelling &&
(tx.data.tx_type == TxLogEntryType::TxSent ||
tx.data.tx_type == TxLogEntryType::TxReceived) { tx.data.tx_type == TxLogEntryType::TxReceived) {
self.tx_info_modal_slate_ui(ui, tx, wallet, modal, cb); self.tx_info_modal_slate_ui(ui, tx, wallet, modal, cb);
} }