diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Refund/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Refund/state.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts b/packages/taler-wallet-webextension/src/cta/Refund/state.ts index 624ab2fb2..9e3311b65 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Refund/state.ts @@ -21,10 +21,12 @@ import { useBackendContext } from "../../context/backend.js"; import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js"; import { Props, State } from "./index.js"; -export function useComponentState( - { talerRefundUri, cancel, onSuccess }: Props, -): State { - const api = useBackendContext() +export function useComponentState({ + talerRefundUri, + cancel, + onSuccess, +}: Props): State { + const api = useBackendContext(); const [ignored, setIgnored] = useState(false); const info = useAsyncAsHook(async () => { |