commit 2c014b5e92222e90f8c07b689809b3812ed8a2b6
parent 6d491258c4e1692108cfce4d106d7146aa31a163
Author: Marc Stibane <marc@taler.net>
Date: Sat, 10 Oct 2026 19:27:42 +0200
AI: off by one
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentScan.swift b/TalerWallet1/Views/Sheets/Payment/PaymentScan.swift
@@ -279,7 +279,7 @@ struct PaySafeArea: View, Sendable {
timeToPay = terms.timeToPay(true)
if let timeToPay {
if timeToPay >= fiveMinutes {
- let nextCheck = timeToPay - fiveMinutes
+ let nextCheck = timeToPay - fiveMinutes + 1
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(nextCheck)) {
self.timeToPay = terms.timeToPay(true)
}
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
@@ -354,7 +354,7 @@ struct TransactionSummaryList: View {
let bottomButton = ZStack {
if isPayDialog, case .payment(let paymentTransaction) = talerTX {
let details = paymentTransaction.details
- if let effective, let terms = details.contractTerms, isFinished != true {
+ if let effective, let terms = details.contractTerms, isFinished == false {
let formatted = effective.formatted(currencyInfo)
PaySafeArea(symLog: symLog,
stack: stack.push(),