[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.
- [taler-taler-ios] 10/69: Exchanges->Banking, (continued)
- [taler-taler-ios] 10/69: Exchanges->Banking, gnunet, 2024/01/19
- [taler-taler-ios] 32/69: Warnings for tx buttons, gnunet, 2024/01/19
- [taler-taler-ios] 16/69: remove about protocols, gnunet, 2024/01/19
- [taler-taler-ios] 18/69: ToS for P2P, gnunet, 2024/01/19
- [taler-taler-ios] 29/69: clearDb (instead of reset), gnunet, 2024/01/19
- [taler-taler-ios] 27/69: use minor for Status, gnunet, 2024/01/19
- [taler-taler-ios] 14/69: remove Apple Sounds, gnunet, 2024/01/19
- [taler-taler-ios] 21/69: TransactionDone popToRootView, gnunet, 2024/01/19
- [taler-taler-ios] 09/69: API 2:0:1, gnunet, 2024/01/19
- [taler-taler-ios] 15/69: hapticFeedback, gnunet, 2024/01/19
- [taler-taler-ios] 08/69: fixes,
gnunet <=
- [taler-taler-ios] 11/69: Landscape, gnunet, 2024/01/19
- [taler-taler-ios] 17/69: Summary in ThreeAmountsV, gnunet, 2024/01/19
- [taler-taler-ios] 50/69: txStates, gnunet, 2024/01/19
- [taler-taler-ios] 24/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 13/69: definitions, gnunet, 2024/01/19
- [taler-taler-ios] 23/69: aborting Notification, gnunet, 2024/01/19
- [taler-taler-ios] 28/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 60/69: P2P Expiration Timestamp, gnunet, 2024/01/19
- [taler-taler-ios] 26/69: Layout transactions, gnunet, 2024/01/19
- [taler-taler-ios] 51/69: cleanup, gnunet, 2024/01/19