gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (6ee95626c -> f6338c00a)


From: gnunet
Subject: [taler-wallet-core] branch master updated (6ee95626c -> f6338c00a)
Date: Thu, 07 Mar 2024 22:23:52 +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 6ee95626c harness: finish wire fees test
     new 2bfde8643 remove query to /instances/
     new f6338c00a avoid parsing undefined amount

The 2 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/demobank-ui/src/pages/PaytoWireTransferForm.tsx |  4 ++--
 packages/merchant-backoffice-ui/src/hooks/backend.ts     |  2 +-
 packages/merchant-backoffice-ui/src/hooks/index.ts       | 10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx 
b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
index f3feed578..aeb5dc0c9 100644
--- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
+++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
@@ -274,9 +274,9 @@ export function PaytoWireTransferForm({
                       assertUnreachable(parsed)
                     }
                   }
-                  const amountStr = parsed.params["amount"] ?? 
`${config.currency}:0`;
+                  const amountStr = !parsed.params ? undefined : 
parsed.params["amount"];
                   if (amountStr) {
-                    const amount = Amounts.parse(parsed.params["amount"]);
+                    const amount = Amounts.parse(amountStr);
                     if (amount) {
                       setAmount(Amounts.stringifyValue(amount));
                     }
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts 
b/packages/merchant-backoffice-ui/src/hooks/backend.ts
index 3a31fcf9b..a3bb43545 100644
--- a/packages/merchant-backoffice-ui/src/hooks/backend.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts
@@ -283,7 +283,7 @@ export function useBackendInstanceRequest(): 
useBackendInstanceRequestType {
 
   const { baseUrl, token: loginToken } = !admin
     ? { baseUrl: rootBackendUrl, token: rootToken }
-    : { baseUrl: `${rootBackendUrl}/instances/${id}`, token: instanceToken };
+    : { baseUrl: rootBackendUrl, token: instanceToken };
 
   const token = loginToken?.token;
 
diff --git a/packages/merchant-backoffice-ui/src/hooks/index.ts 
b/packages/merchant-backoffice-ui/src/hooks/index.ts
index f0cd1bfb9..9c194fdee 100644
--- a/packages/merchant-backoffice-ui/src/hooks/index.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/index.ts
@@ -67,11 +67,11 @@ export function useBackendDefaultToken(
 ): [LoginToken | undefined, ((d: LoginToken | undefined) => void)] {
   const { update: setToken, value: tokenMap, reset } = 
useLocalStorage(TOKENS_KEY, {})
 
-  const tokenOfDefaultInstance = tokenMap["default"]
-  const clearCache = useMatchMutate()
-  useEffect(() => {
-    clearCache()
-  }, [tokenOfDefaultInstance])
+  // const tokenOfDefaultInstance = tokenMap["default"]
+  // const clearCache = useMatchMutate()
+  // useEffect(() => {
+  //   clearCache()
+  // }, [tokenOfDefaultInstance])
 
   function updateToken(
     value: (LoginToken | undefined)

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