taler-ios

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

commit 9d37e2ea036bb065ebec82fa1f07526cebd865c0
parent 6225381a23fd837758103d579a83abca3bb24f61
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 11 Sep 2024 08:11:09 +0200

amountAvailable @Binding

Diffstat:
MTalerWallet1/Views/Sheets/Payment/PayTemplateV.swift | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift b/TalerWallet1/Views/Sheets/Payment/PayTemplateV.swift @@ -33,7 +33,7 @@ struct PayTemplateV: View { @State private var amountIsEditable = false @State private var amountToTransfer = Amount.zero(currency: EMPTYSTRING) // Update currency when used @State private var amountShortcut = Amount.zero(currency: EMPTYSTRING) // Update currency when used - @State private var amountZero = Amount.zero(currency: EMPTYSTRING) // needed for isZero + @State private var amountAvailable = Amount.zero(currency: EMPTYSTRING) // TODO: set correct available amount (like in SendAmountV) @State private var shortcutSelected = false @State private var buttonSelected1 = false @State private var buttonSelected2 = false @@ -135,7 +135,7 @@ struct PayTemplateV: View { if amountIsEditable { // template contract amount is not fixed => let the user input an amount first let amountInput = AmountInputV(stack: stack.push(), currencyInfo: $currencyInfo, - amountAvailable: $amountZero, + amountAvailable: $amountAvailable, amountLabel: amountLabel, amountToTransfer: $amountToTransfer, wireFee: nil,