gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 129/204: currencyInfo


From: gnunet
Subject: [taler-taler-ios] 129/204: currencyInfo
Date: Thu, 05 Dec 2024 23:51:37 +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 09b789b792fa644b9c30e049539ca6e2fd2f8573
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Nov 11 16:18:31 2024 +0100

    currencyInfo
---
 TalerWallet1/Views/Actions/Banking/DepositIbanV.swift   | 5 ++---
 TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Views/Actions/Banking/DepositIbanV.swift 
b/TalerWallet1/Views/Actions/Banking/DepositIbanV.swift
index 9029f19..882fb92 100644
--- 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
index 1321ba5..dd15046 100644
--- 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)
                 }
             }
 

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