gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 09/30: Bugfix: set currency in buttonAction


From: gnunet
Subject: [taler-taler-ios] 09/30: Bugfix: set currency in buttonAction
Date: Sun, 19 Nov 2023 23:53:33 +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 4d66a94d76273fb2ed6547a361b8f20617e12a1d
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Nov 17 16:55:06 2023 +0100

    Bugfix: set currency in buttonAction
---
 TalerWallet1/Views/Balances/BalancesSectionView.swift | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift 
b/TalerWallet1/Views/Balances/BalancesSectionView.swift
index 0578b0d..40feeff 100644
--- a/TalerWallet1/Views/Balances/BalancesSectionView.swift
+++ b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -225,6 +225,10 @@ fileprivate struct BalancesNavigationLinksView: View {
     @State private var buttonSelected: Int? = nil
 
     func selectAndUpdate(_ button: Int) {
+        let currency = balance.scopeInfo.currency
+        amountToTransfer.setCurrency(currency)
+        symLog?.log("balance.scopeInfo.currency: \(currency)")
+
         buttonSelected = button      // will trigger NavigationLink
         // while navigation animation runs, contact Exchange to update Fees
 //        Task { // runs on MainActor
@@ -236,14 +240,8 @@ fileprivate struct BalancesNavigationLinksView: View {
 //        }
     }
 
-    func setCurrency() -> String {
-        let currency = balance.scopeInfo.currency
-        amountToTransfer.setCurrency(currency)
-        return currency
-    }
-
     var body: some View {
-        let currency = setCurrency()                        // update currency 
in amountToTransfer
+        let currency = balance.scopeInfo.currency
         HStack(spacing: 0) {
             NavigationLink(destination: LazyView {
                 SendAmount(stack: stack.push(),

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