commit c564a90f8a85355f7a2d7e9a41dd8c568fe6c73a
parent f21286b6e7a73465267934641efdfcdef58ca1cd
Author: Sebastian <sebasjm@taler-systems.com>
Date: Wed, 4 Feb 2026 15:25:32 -0300
fix #10993: show swiss QR codes on bank setup
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/packages/taler-util/src/qr.ts b/packages/taler-util/src/qr.ts
@@ -34,9 +34,6 @@ function encodePaytoAsSwissQrBill(paytoUri: string): EncodeResult {
return { type: "skip" };
}
const amountStr = parsedPayto.params["amount"];
- if (amountStr === undefined) {
- return { type: "skip" };
- }
const targetPathParts = parsedPayto.targetPath.split("/");
const beneficiaryIban = targetPathParts[targetPathParts.length - 1];
const countryCode = beneficiaryIban.slice(0, 2).toUpperCase();
@@ -66,8 +63,8 @@ function encodePaytoAsSwissQrBill(paytoUri: string): EncodeResult {
"", // Ultimate Debtor town
"", // Ultimate Debtor country
// Group: Amount
- Amounts.stringifyValue(amountStr, 2), // Amount
- Amounts.currencyOf(amountStr), // Currency
+ amountStr === undefined ? "" : Amounts.stringifyValue(amountStr, 2), // Amount
+ amountStr === undefined ? "" : Amounts.currencyOf(amountStr), // Currency
// Group: Debtor
"", // Address type (S: structured)
"", // Debtor name