aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-28 09:29:14 -0300
committerSebastian <sebasjm@gmail.com>2022-11-28 09:29:14 -0300
commit3577227cc0ff0f9e0c422ae34c4407d88e98ec21 (patch)
tree837b707dbc7d154c5092e50b0296cb8289e0f1ef /packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
parentdcddc4c53a59b087c5e48b6b20ed740514257bc8 (diff)
downloadwallet-core-3577227cc0ff0f9e0c422ae34c4407d88e98ec21.tar.xz
fix #7496 with unit tests
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts')
-rw-r--r--packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
index 4ce81dad8..6007b5193 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
@@ -25,11 +25,10 @@ import { isFuture, parse } from "date-fns";
import { useState } from "preact/hooks";
import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js";
import { useSelectedExchange } from "../../hooks/useSelectedExchange.js";
+import { RecursiveState } from "../../utils/index.js";
import { wxApi } from "../../wxApi.js";
import { Props, State } from "./index.js";
-type RecursiveState<S extends object> = S | (() => RecursiveState<S>);
-
export function useComponentState(
{ amount: amountStr, onClose, onSuccess }: Props,
api: typeof wxApi,