taler-ios

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

commit 7dd77018fc7dff96af78eaf30eaec87a936a725b
parent d5e285e741f1ac2427c80e1f4fcf63a9439ede9f
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 15 Mar 2025 15:25:13 +0100

query controller

Diffstat:
MTalerWallet1/Views/HelperViews/QRCodeDetailView.swift | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift @@ -28,8 +28,9 @@ struct QRCodeDetailView: View { private func amountStr(_ currencyInfo : CurrencyInfo?) -> (String, String) { let amountFormatted: (String, String) let readable = amount.readableDescription - if let currencyInfo { - amountFormatted = amount.formatted(currencyInfo, isNegative: false, + let myCurrencyInfo = currencyInfo ?? controller.info(for: scope) + if let myCurrencyInfo { + amountFormatted = amount.formatted(myCurrencyInfo, isNegative: false, useISO: false, a11yDecSep: nil) } else { amountFormatted = (readable, readable)