[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 05/06: fix: summary empty string also means that sum
From: |
gnunet |
Subject: |
[taler-wallet-core] 05/06: fix: summary empty string also means that summary is required |
Date: |
Fri, 10 Mar 2023 05:27:46 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit f40487806304dbaafa74544d5a8f74ab56569044
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Mar 10 01:26:05 2023 -0300
fix: summary empty string also means that summary is required
---
packages/taler-wallet-core/src/wallet.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/wallet.ts
b/packages/taler-wallet-core/src/wallet.ts
index 8614fd7e3..6197f000e 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1183,14 +1183,14 @@ async function dispatchRequestInternal<Op extends
WalletApiOperation>(
throw Error("invalid taler-template URI");
}
if (
- url.templateParams.amount &&
+ url.templateParams.amount !== undefined &&
typeof url.templateParams.amount === "string"
) {
templateDetails.amount =
req.templateParams.amount ?? url.templateParams.amount;
}
if (
- url.templateParams.summary &&
+ url.templateParams.summary !== undefined &&
typeof url.templateParams.summary === "string"
) {
templateDetails.summary =
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (863e6db05 -> 867d2ca76), gnunet, 2023/03/09
- [taler-wallet-core] 01/06: dev mode: check exchange cache, gnunet, 2023/03/09
- [taler-wallet-core] 03/06: add payTemplate, fix missing ampersand, gnunet, 2023/03/09
- [taler-wallet-core] 02/06: support http and https, gnunet, 2023/03/09
- [taler-wallet-core] 04/06: remove webui from login url, ad qr for template, fix navbar size,, gnunet, 2023/03/09
- [taler-wallet-core] 06/06: fix encoded uri, add pay template cta, gnunet, 2023/03/09
- [taler-wallet-core] 05/06: fix: summary empty string also means that summary is required,
gnunet <=