diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-15 17:12:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-15 17:12:03 -0300 |
commit | f1f8f818dbe631fbeeba64af9dfcae1aa7842615 (patch) | |
tree | 856d3b443556ce271c3e9fdab6aed7ae7728ab65 /packages/taler-wallet-webextension/src/cta/Recovery | |
parent | f93bd51499ed34844b666bf6d333227adf4368bf (diff) | |
download | wallet-core-f1f8f818dbe631fbeeba64af9dfcae1aa7842615.tar.xz |
pretty
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Recovery')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Recovery/state.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Recovery/state.ts b/packages/taler-wallet-webextension/src/cta/Recovery/state.ts index 018d61c03..4fef2c862 100644 --- a/packages/taler-wallet-webextension/src/cta/Recovery/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Recovery/state.ts @@ -19,10 +19,12 @@ import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useBackendContext } from "../../context/backend.js"; import { Props, State } from "./index.js"; -export function useComponentState( - { talerRecoveryUri, onCancel, onSuccess }: Props, -): State { - const api = useBackendContext() +export function useComponentState({ + talerRecoveryUri, + onCancel, + onSuccess, +}: Props): State { + const api = useBackendContext(); if (!talerRecoveryUri) { return { status: "loading-uri", |