gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] 01/02: remove query to /instances/


From: gnunet
Subject: [taler-wallet-core] 01/02: remove query to /instances/
Date: Thu, 07 Mar 2024 22:23:53 +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 2bfde8643fe719626d7c7eae82b3ccc08ad50e17
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Mar 7 15:31:30 2024 -0300

    remove query to /instances/
---
 packages/merchant-backoffice-ui/src/hooks/backend.ts |  2 +-
 packages/merchant-backoffice-ui/src/hooks/index.ts   | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

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]