commit 09b789b792fa644b9c30e049539ca6e2fd2f8573
parent 4a40e72a9affc1e528c492e5a103f07d5ac9fb92
Author: Marc Stibane <marc@taler.net>
Date: Mon, 11 Nov 2024 16:18:31 +0100
currencyInfo
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/TalerWallet1/Views/Actions/Banking/DepositIbanV.swift b/TalerWallet1/Views/Actions/Banking/DepositIbanV.swift
@@ -32,16 +32,15 @@ struct DepositIbanV: View {
@State private var transactionStarted: Bool = false
@State private var paytoUri: String? = nil
@FocusState private var isFocused: Bool
- @State private var currencyInfo: CurrencyInfo = CurrencyInfo.zero(UNKNOWN)
@State private var currencyName: String = UNKNOWN
@State private var currencySymbol: String = UNKNOWN
@State private var amountAvailable = Amount.zero(currency: EMPTYSTRING) // Update currency when used
@State private var amountToTransfer = Amount.zero(currency: EMPTYSTRING) // Update currency when used
private func buttonTitle(_ amount: Amount) -> String {
- let amountWithCurrency = amount.formatted(currencyInfo, isNegative: true, useISO: true)
+// let amountWithCurrency = amount.formatted(currencyInfo, isNegative: true, useISO: true)
return String(localized: "Next", comment: "advance Deposit to Amount")
- return String(localized: "Deposit \(amountWithCurrency)", comment: "amount with currency")
+// return String(localized: "Deposit \(amountWithCurrency)", comment: "amount with currency")
}
private var subjectTitle: String {
diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
@@ -94,7 +94,7 @@ struct ManualWithdraw: View {
if let balance {
let scopeInfo = balance.scopeInfo
amountToTransfer.setCurrency(scopeInfo.currency)
-// currencyInfo = controller.info(for: scopeInfo, controller.currencyTicker)
+ currencyInfo = controller.info(for: scopeInfo, controller.currencyTicker)
}
}