gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 31/69: Withdraw only once


From: gnunet
Subject: [taler-taler-ios] 31/69: Withdraw only once
Date: Fri, 19 Jan 2024 09:02:04 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 10b927985213682ea539b44dc7b6fbefb746d3c3
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jan 4 17:51:18 2024 +0100

    Withdraw only once
---
 TalerWallet1/Views/Exchange/ManualWithdrawDone.swift | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Exchange/ManualWithdrawDone.swift 
b/TalerWallet1/Views/Exchange/ManualWithdrawDone.swift
index cb4963b..8a855a6 100644
--- a/TalerWallet1/Views/Exchange/ManualWithdrawDone.swift
+++ b/TalerWallet1/Views/Exchange/ManualWithdrawDone.swift
@@ -51,12 +51,14 @@ struct ManualWithdrawDone: View {
             symLog.log("onAppear")
             DebugViewC.shared.setViewID(VIEW_WITHDRAW_ACCEPT, stack: 
stack.push())
         }.task {
-            do {
-                let result = try await 
model.sendAcceptManualWithdrawalM(exchange.exchangeBaseUrl,
-                                                                         
amount: amountToTransfer, restrictAge: 0)
-                transactionId = result!.transactionId
-            } catch {    // TODO: error
-                symLog.log(error.localizedDescription)
+            if transactionId == nil {
+                do {
+                    let result = try await 
model.sendAcceptManualWithdrawalM(exchange.exchangeBaseUrl,
+                                                                             
amount: amountToTransfer, restrictAge: 0)
+                    transactionId = result!.transactionId
+                } catch {    // TODO: error
+                    symLog.log(error.localizedDescription)
+                }
             }
         }
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]