diff options
Diffstat (limited to 'packages/web-util/src')
-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 = ({ |