taler-ios

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

commit a3802010696cf775a363d86e93ac848ce0213185
parent f4ef8d7cd455e957b2b9b372e90914ae37bc641c
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 19 Nov 2026 15:21:10 +0100

AI: #12141 fix loop

Diffstat:
MTalerWallet1/Views/Settings/Exchange/ExchangeListView.swift | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift @@ -41,6 +41,7 @@ struct ExchangeListView: View { #endif @State private var showAlert: Bool = false + @State private var urlTaken: Bool = false @State private var newExchange: String = EXCHANGE + DEMO // without HTTPS func checkExchanges() { @@ -74,10 +75,10 @@ struct ExchangeListView: View { .navigationTitle(TITLE_EXCHANGES) .navigationBarItems(trailing: plusButton) .task { - if let newUrl = url { + if let newUrl = url, !urlTaken { + urlTaken = true // make sure to do this only once newExchange = newUrl.trimmedString showAlert = true - url = nil } else { checkExchanges() }