diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-25 23:07:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-26 11:48:29 -0300 |
commit | 41ab855736815d33f5fdbebc896b167c71482eee (patch) | |
tree | b1c61f37f107f8118215483c4945bc942ee45b7a /packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx | |
parent | 65e6a8caa0de98632ad99cca35bf98bffe663dff (diff) | |
download | wallet-core-41ab855736815d33f5fdbebc896b167c71482eee.tar.gz wallet-core-41ab855736815d33f5fdbebc896b167c71482eee.tar.bz2 wallet-core-41ab855736815d33f5fdbebc896b167c71482eee.zip |
remove old async hook
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx index 1d0e81e01..daa46086e 100644 --- a/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ManualWithdrawPage.tsx @@ -27,7 +27,7 @@ import { useEffect, useState } from "preact/hooks"; import { Loading } from "../components/Loading.js"; import { LoadingError } from "../components/LoadingError.js"; import { useTranslationContext } from "../context/translation.js"; -import { useAsyncAsHook, useAsyncAsHook2 } from "../hooks/useAsyncAsHook.js"; +import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import * as wxApi from "../wxApi.js"; import { CreateManualWithdraw } from "./CreateManualWithdraw.js"; import { ReserveCreated } from "./ReserveCreated.js"; @@ -50,7 +50,7 @@ export function ManualWithdrawPage({ currency, onCancel }: Props): VNode { >(undefined); const [error, setError] = useState<string | undefined>(undefined); - const state = useAsyncAsHook2(wxApi.listExchanges); + const state = useAsyncAsHook(wxApi.listExchanges); useEffect(() => { wxApi.onUpdateNotification([NotificationType.ExchangeAdded], () => { state?.retry(); |