taler-ios

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

commit 0ea8dea56943d5c6bfe9b2513d9f824628e0c0b9
parent eb76f9de5bfeaf9199aca4b31b26fec64cdab7eb
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 20 Jul 2026 17:26:34 +0200

retry

Diffstat:
MTalerWallet1/Views/HelperViews/LoadingView.swift | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/LoadingView.swift b/TalerWallet1/Views/HelperViews/LoadingView.swift @@ -62,12 +62,14 @@ struct LoadingView: View { withAnimation { showAlert = false } - if let lastError = controller.lastProgressError { - controller.lastProgressError = nil - Task { - try await model.retryProgressTokenNow(lastError.operation, - token: lastError.progressToken) - } } + if let token = controller.progressToken { + if let operation = controller.progressOperation { + controller.lastProgressError = nil + Task { + try await model.retryProgressTokenNow(operation, token: token) + } + } + } } .buttonStyle(TalerButtonStyle(type: .prominent, disabled: disabled)) .padding(.horizontal)