taler-ios

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

commit 1a49f45b36e7219373997878879aebfd43ac92da
parent fdc905df55391794e6115d2afe40291858794243
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 13 Dec 2023 22:59:03 +0100

fixes

Diffstat:
MTalerWallet1/Views/Peer2peer/P2PSubjectV.swift | 2+-
MTalerWallet1/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 @@ -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 @@ -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