[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: add default handler for request that are outs
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: add default handler for request that are outside config |
Date: |
Mon, 23 Oct 2023 13:47:46 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 5b6c0167ad232c1851a87911379e0753f3c485a8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Oct 23 08:47:03 2023 -0300
add default handler for request that are outside config
---
packages/web-util/src/context/api.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/web-util/src/context/api.ts
b/packages/web-util/src/context/api.ts
index 23b7e77af..b4a82065b 100644
--- a/packages/web-util/src/context/api.ts
+++ b/packages/web-util/src/context/api.ts
@@ -32,7 +32,7 @@ interface Type {
bankRevenue: TalerRevenueHttpClient,
}
-const Context = createContext<Type>(undefined as any);
+const Context = createContext<Type>({request: defaultRequestHandler} as any);
export const useApiContext = (): Type => useContext(Context);
export const ApiContextProvider = ({
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.