diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-23 08:47:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-23 08:47:36 -0300 |
commit | 5b6c0167ad232c1851a87911379e0753f3c485a8 (patch) | |
tree | 7ae4ad8a3d4e34049c2da88fec48be58d50b7f01 /packages/web-util/src/context/api.ts | |
parent | 66455014e08b229ff4d3ee9071fd7c82225cfcd6 (diff) | |
download | wallet-core-5b6c0167ad232c1851a87911379e0753f3c485a8.tar.xz |
add default handler for request that are outside config
Diffstat (limited to 'packages/web-util/src/context/api.ts')
-rw-r--r-- | packages/web-util/src/context/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 = ({ |