commit 8e42aff122ce62566d954815d7d2fa95184a851e
parent 88e39b3bf2f70fb052e40f8923aefa7aa923bf43
Author: Marc Stibane <marc@taler.net>
Date: Fri, 12 Dec 2025 08:00:03 +0100
remove scanned tx after withdrawal
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdrawDone.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdrawDone.swift
@@ -19,6 +19,7 @@ struct ManualWithdrawDone: View {
let amountToTransfer: Amount
// let restrictAge: Int?
+ @EnvironmentObject private var controller: Controller
@EnvironmentObject private var model: WalletModel
@State private var acceptManualWithdrawalResult: AcceptManualWithdrawalResult?
@@ -33,7 +34,12 @@ struct ManualWithdrawDone: View {
if let result = try? await model.acceptManualWithdrawal(amountToTransfer,
baseUrl: baseURL,
restrictAge: 0)
- { transactionId = result.transactionId }
+ {
+ if let url {
+ controller.removeURL(url)
+ }
+ transactionId = result.transactionId
+ }
}
}
diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptDone.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptDone.swift
@@ -34,6 +34,7 @@ struct WithdrawAcceptDone: View {
amount: amountToTransfer,
restrictAge: nil
) {
+ controller.removeURL(url)
let confirmTransferUrl = result.confirmTransferUrl
symLog.log(confirmTransferUrl)
if amountToTransfer == nil {