Skip to content

Commit f949b8e

Browse files
committed
Fix: Incorrect pop-up while sending btc again
1 parent 5b5d871 commit f949b8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Adamant/Modules/Wallets/Bitcoin/BtcTransferViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ final class BtcTransferViewController: TransferViewControllerBase {
3939

4040
Task {
4141
do {
42+
if await !doesNotContainSendingTx() {
43+
presentSendingError()
44+
return
45+
}
46+
4247
let transaction = try await service.createTransaction(
4348
recipient: recipient,
4449
amount: amount,
4550
fee: transactionFee,
4651
comment: nil
4752
)
4853

49-
if await !doesNotContainSendingTx() {
50-
presentSendingError()
51-
return
52-
}
53-
5454
// Send adm report
5555
if let reportRecipient = admReportRecipient,
5656
let hash = transaction.txHash

0 commit comments

Comments
 (0)