summaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
index c1359e641..f60508504 100644
--- a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
+++ b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
@@ -18,8 +18,8 @@
*
* @author Sebastian Javier Marchano (sebasjm)
*/
+import { useMerchantApiContext } from "@gnu-taler/web-util/browser";
import { ComponentChildren, h, VNode } from "preact";
-import { useConfigContext } from "../../context/config.js";
import { Amount } from "../../declaration.js";
import { InputWithAddon } from "./InputWithAddon.js";
import { InputProps } from "./useField.js";
@@ -43,7 +43,7 @@ export function InputCurrency<T>({
children,
side,
}: Props<keyof T>): VNode {
- const config = useConfigContext();
+ const { config } = useMerchantApiContext();
return (
<InputWithAddon<T>
name={name}