commit b5eef86b42bfec478261e79a612ca91072e87127
parent 5010f667eaa7f57a5f06334fa7365501e15abf69
Author: Marc Stibane <marc@taler.net>
Date: Mon, 10 Jun 2024 22:43:26 +0200
Bugfix for Send P2P
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/HelperViews/AmountInputV.swift b/TalerWallet1/Views/HelperViews/AmountInputV.swift
@@ -40,7 +40,7 @@ struct AmountInputV: View {
func checkAvailable(amount: Amount) -> Flags {
if let amountAvailable {
do {
- let insufficient = try amountAvailable > amount
+ let insufficient = try amount > amountAvailable
let disabled = insufficient || amount.isZero
return Flags(insufficient: insufficient, disabled: disabled)
} catch {