gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 18/32: cleanup


From: gnunet
Subject: [taler-taler-ios] 18/32: cleanup
Date: Sun, 14 Jul 2024 00:19:27 +0200

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 ce6d205076c0e832f35ca4d0c84424d26bbeac04
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Jul 12 23:41:20 2024 +0200

    cleanup
---
 TalerWallet1/Views/Peer2peer/P2PReadyV.swift | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Peer2peer/P2PReadyV.swift 
b/TalerWallet1/Views/Peer2peer/P2PReadyV.swift
index d2bf281..ea0d163 100644
--- a/TalerWallet1/Views/Peer2peer/P2PReadyV.swift
+++ b/TalerWallet1/Views/Peer2peer/P2PReadyV.swift
@@ -78,19 +78,16 @@ struct P2PReadyV: View {
             let timestamp = developerMode ? Timestamp.inSomeMinutes(expireDays 
> 20 ? (24*60)
                                                                   : expireDays 
> 5 ? 60 : 3)
                                           : Timestamp.inSomeDays(expireDays)
+            let terms = PeerContractTerms(amount: amountToTransfer,
+                                         summary: summary,
+                                purse_expiration: timestamp)
             if amountToSend {
-                let terms = PeerContractTerms(amount: amountToTransfer,
-                                             summary: summary,
-                                    purse_expiration: timestamp)
                 // TODO: let user choose baseURL
                 if let response = try? await model.initiatePeerPushDebitM(nil, 
terms: terms) {
                     // will switch from WithdrawProgressView to 
TransactionSummaryV
                     transactionId = response.transactionId
                 }
             } else {
-                let terms = PeerContractTerms(amount: amountToTransfer,
-                                             summary: summary,
-                                    purse_expiration: timestamp)
                 // TODO: let user choose baseURL
                 if let response = try? await 
model.initiatePeerPullCreditM(nil, terms: terms) {
                     // will switch from WithdrawProgressView to 
TransactionSummaryV

-- 
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]