gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]