gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: fix when price is und


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: fix when price is undefined
Date: Thu, 21 Oct 2021 17:07:51 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new f9cc132  fix when price is undefined
f9cc132 is described below

commit f9cc132158775b3b7526d7f0b8021134efeeef41
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Oct 21 12:07:40 2021 -0300

    fix when price is undefined
---
 packages/frontend/src/paths/instance/orders/create/CreatePage.tsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/frontend/src/paths/instance/orders/create/CreatePage.tsx 
b/packages/frontend/src/paths/instance/orders/create/CreatePage.tsx
index b024c9c..e0e9970 100644
--- a/packages/frontend/src/paths/instance/orders/create/CreatePage.tsx
+++ b/packages/frontend/src/paths/instance/orders/create/CreatePage.tsx
@@ -237,6 +237,7 @@ export function CreatePage({ onCreate, onBack, 
instanceConfig, instanceInventory
   }, zero)
 
   const totalPriceProducts = productList.reduce((prev, cur) => {
+    if (!cur.price) return zero
     const p = Amounts.parseOrThrow(cur.price)
     return Amounts.add(prev, Amounts.mult(p, cur.quantity).amount).amount
   }, zero)

-- 
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]