gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 08/69: fixes


From: gnunet
Subject: [taler-taler-ios] 08/69: fixes
Date: Fri, 19 Jan 2024 09:01:41 +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 1a49f45b36e7219373997878879aebfd43ac92da
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Dec 13 22:59:03 2023 +0100

    fixes
---
 TalerWallet1/Views/Peer2peer/P2PSubjectV.swift    | 2 +-
 TalerWallet1/Views/Sheets/WithdrawExchangeV.swift | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/Peer2peer/P2PSubjectV.swift 
b/TalerWallet1/Views/Peer2peer/P2PSubjectV.swift
index d6a788c..12708c8 100644
--- a/TalerWallet1/Views/Peer2peer/P2PSubjectV.swift
+++ b/TalerWallet1/Views/Peer2peer/P2PSubjectV.swift
@@ -129,7 +129,7 @@ struct P2PSubjectV: View {
 //            print("❗️ P2PSubjectV onDisappear")
         }
         .task(id: amountToTransfer.value) {
-            if feeLabel == nil {
+            if amountToSend && feeLabel == nil {
                 do {
                     let ppCheck = try await 
model.checkPeerPushDebitM(amountToTransfer)
                     if let feeAmount = p2pFee(ppCheck: ppCheck) {
diff --git a/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift 
b/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift
index 0979370..ecd8fa9 100644
--- a/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift
+++ b/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift
@@ -36,13 +36,14 @@ struct WithdrawExchangeV: View {
                 symLog.log(".task")
                 let withdrawExchange = try await 
model.loadWithdrawalExchangeForUriM(url.absoluteString)
                 let baseUrl = withdrawExchange.exchangeBaseUrl
-//                let exc = await model.getExchangeByUrl(url: baseUrl)
                 exchangeBaseUrl = baseUrl
                 if let amount = withdrawExchange.amount {
                     amountToTransfer = amount
                 } else {
-
+                    // is already Amount.zero(currency: "")
                 }
+                // let the controller collect CurrencyInfo from this formerly 
unknown exchange
+                let _ = await controller.getInfo(from: baseUrl, model: model)
             } catch {    // TODO: error
                 symLog.log(error.localizedDescription)
                 exchangeBaseUrl = nil

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