taler-ios

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

commit e3fcb3fa0f9a96c955693a581d4e3867909fa94f
parent 2627b456f78f0890e9b4018b8ebf573659b63bac
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 10 Oct 2026 08:43:26 +0200

AI: wrong comparison

Diffstat:
MTalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift @@ -79,8 +79,9 @@ struct WithdrawUriScan: View { let fee = try? details.amountRaw - details.amountEffective let feeStr = fee?.formatted(currencyInfo, isNegative: true) ?? ("0", "0") symLog.log("Fee = \(feeStr.0)") + // amountAvailable is the bank's maxAmount: only more than that is too much let insufficient = if let amountAvailable { - (try? details.amountRaw < amountAvailable) ?? true + (try? details.amountRaw > amountAvailable) ?? true } else { false }