diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-15 12:01:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-15 12:01:16 -0300 |
commit | a7c8f0f3edd738a59d719105cda3aa8821886b90 (patch) | |
tree | acb402075b7b0c0788ec0c5fbecfb58ece64357d /packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx | |
parent | 56a6c92c814547fcf8af25f183f6ecd75fbbfbb9 (diff) | |
download | wallet-core-a7c8f0f3edd738a59d719105cda3aa8821886b90.tar.xz |
fix #8604
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx index 76d38db84..11396b88e 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx @@ -23,6 +23,7 @@ import { ComponentChildren, h, VNode } from "preact"; import { InputWithAddon } from "./InputWithAddon.js"; import { InputProps } from "./useField.js"; import { AmountString } from "@gnu-taler/taler-util"; +import { useSessionContext } from "../../context/session.js"; export interface Props<T> extends InputProps<T> { expand?: boolean; @@ -43,7 +44,7 @@ export function InputCurrency<T>({ children, side, }: Props<keyof T>): VNode { - const { config } = useMerchantApiContext(); + const { config } = useSessionContext(); return ( <InputWithAddon<T> name={name} |