commit 3da3fd49e152a5365fa786035ea10a8eba5a33fb parent e2cb593b82d7eb1fcf00989d383ce75333949d20 Author: Marc Stibane <marc@taler.net> Date: Thu, 19 Nov 2026 16:07:17 +0100 AI: #12157 missing ToS Diffstat:
| M | TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift @@ -51,8 +51,11 @@ struct WithdrawAcceptView: View { ZStack { // there is only _one_ Z item ever - use ZStack to ensure .task is run only _once_ when exchange is switched if let exchange2 = exchange { // there should always be an exchange... VStack { + // missingTos could mean "not known yet" - only accept it after exchange is ready + let isFetched = exchange2.exchangeUpdateStatus == .ready + || exchange2.exchangeUpdateStatus == .readyUpdate let tosAccepted = exchange2.tosStatus == .accepted - || exchange2.tosStatus == .missingTos // no ToS to accept + || (exchange2.tosStatus == .missingTos && isFetched) // no ToS to accept if !tosAccepted { ToSButtonView(stack: stack.push(), exchangeBaseUrl: exchange2.exchangeBaseUrl,