taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit ce6d205076c0e832f35ca4d0c84424d26bbeac04
parent 79df53432081cb405510fbd25a0685f40f65bc63
Author: Marc Stibane <marc@taler.net>
Date:   Fri, 12 Jul 2024 23:41:20 +0200

cleanup

Diffstat:
MTalerWallet1/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 @@ -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