gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (7c3570d25 -> dc08d7d20)


From: gnunet
Subject: [taler-wallet-core] branch master updated (7c3570d25 -> dc08d7d20)
Date: Tue, 22 Nov 2022 19:15:48 +0100

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

sebasjm pushed a change to branch master
in repository wallet-core.

    from 7c3570d25 -typo
     new 5e12a35c7 fix #7470
     new 299ca60f1 Merge branch 'master' of git.taler.net:wallet-core
     new dc08d7d20 fixing import db when pkey is number

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-wallet-core/src/db.ts                  |  5 ++++-
 packages/taler-wallet-core/src/util/denominations.ts  | 19 +++++++++++--------
 .../src/cta/InvoiceCreate/views.tsx                   |  3 +++
 .../src/cta/TransferCreate/views.tsx                  |  3 +++
 4 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/packages/taler-wallet-core/src/db.ts 
b/packages/taler-wallet-core/src/db.ts
index 5a2e493b5..bbd93f669 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -2258,7 +2258,10 @@ export async function importDb(db: IDBDatabase, object: 
any): Promise<void> {
         dump.stores[name] = storeDump;
         talerDb.objectStores[name].records.map((r: any) => {
           const pkey = r.primaryKey;
-          const key = typeof pkey === "string" ? pkey : pkey.join(",");
+          const key =
+            typeof pkey === "string" || typeof pkey === "number"
+              ? pkey
+              : pkey.join(",");
           storeDump[key] = r.value;
         });
       }
diff --git a/packages/taler-wallet-core/src/util/denominations.ts 
b/packages/taler-wallet-core/src/util/denominations.ts
index 639f53895..ef35fe198 100644
--- a/packages/taler-wallet-core/src/util/denominations.ts
+++ b/packages/taler-wallet-core/src/util/denominations.ts
@@ -93,11 +93,11 @@ export function createPairTimeline(
   left: FeeDescription[],
   right: FeeDescription[],
 ): FeeDescriptionPair[] {
-  //FIXME: we need to create a copy of the array because 
-  //this algorithm is using splice, remove splice and 
+  //FIXME: we need to create a copy of the array because
+  //this algorithm is using splice, remove splice and
   //remove this array duplication
-  left = [...left]
-  right = [...right]
+  left = [...left];
+  right = [...right];
 
   //both list empty, discarded
   if (left.length === 0 && right.length === 0) return [];
@@ -108,7 +108,10 @@ export function createPairTimeline(
   let ri = 0; //right list index
 
   while (li < left.length && ri < right.length) {
-    const currentGroup = Number.parseFloat(left[li].group) < 
Number.parseFloat(right[ri].group) ? left[li].group : right[ri].group;
+    const currentGroup =
+      Number.parseFloat(left[li].group) < Number.parseFloat(right[ri].group)
+        ? left[li].group
+        : right[ri].group;
     const lgs = li; //left group start index
     const rgs = ri; //right group start index
 
@@ -182,7 +185,7 @@ export function createPairTimeline(
     }
 
     //now both lists are non empty and (starts,ends) at the same time
-    while (li < (lgs + lgl) && ri < (rgs + rgl)) {
+    while (li < lgs + lgl && ri < rgs + rgl) {
       if (
         AbsoluteTime.cmp(left[li].from, timeCut) !== 0 &&
         AbsoluteTime.cmp(right[ri].from, timeCut) !== 0
@@ -233,7 +236,7 @@ export function createPairTimeline(
   if (li < left.length) {
     let timeCut =
       pairList.length > 0 &&
-        pairList[pairList.length - 1].group === left[li].group
+      pairList[pairList.length - 1].group === left[li].group
         ? pairList[pairList.length - 1].until
         : left[li].from;
     while (li < left.length) {
@@ -251,7 +254,7 @@ export function createPairTimeline(
   if (ri < right.length) {
     let timeCut =
       pairList.length > 0 &&
-        pairList[pairList.length - 1].group === right[ri].group
+      pairList[pairList.length - 1].group === right[ri].group
         ? pairList[pairList.length - 1].until
         : right[ri].from;
     while (ri < right.length) {
diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx 
b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
index f15482953..0ef5c697e 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx
@@ -125,6 +125,9 @@ export function ReadyView({
             label="Subject"
             variant="filled"
             error={subject.error}
+            helperText={
+              <i18n.Translate>Short description of the invoice</i18n.Translate>
+            }
             required
             fullWidth
             value={subject.value}
diff --git 
a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx 
b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
index 7b1c208b9..0b034e3fb 100644
--- a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx
@@ -93,6 +93,9 @@ export function ReadyView({
           <TextField
             label="Subject"
             variant="filled"
+            helperText={
+              <i18n.Translate>Short description of the 
transfer</i18n.Translate>
+            }
             error={subject.error}
             required
             fullWidth

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