aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/context/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/context/config.ts')
-rw-r--r--packages/aml-backoffice-ui/src/context/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/aml-backoffice-ui/src/context/config.ts b/packages/aml-backoffice-ui/src/context/config.ts
index 42f73428a..d2bc58578 100644
--- a/packages/aml-backoffice-ui/src/context/config.ts
+++ b/packages/aml-backoffice-ui/src/context/config.ts
@@ -31,14 +31,14 @@ export type Type = {
api: TalerExchangeHttpClient,
};
-const Context = createContext<Type>(undefined as any);
+const Context = createContext<Type>(undefined!);
export const useExchangeApiContext = (): Type => useContext(Context);
export const useMaybeExchangeApiContext = (): Type | undefined => useContext(Context);
export function ExchangeApiContextTesting({ config, children }: { config: TalerExchangeApi.ExchangeVersionResponse, children?: ComponentChildren; }): VNode {
return h(Context.Provider, {
- value: { url: new URL("http://testing"), config, api: null as any },
+ value: { url: new URL("http://testing"), config, api: null! },
children
}
)