From 41ab855736815d33f5fdbebc896b167c71482eee Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Apr 2022 23:07:31 -0300 Subject: remove old async hook --- .../taler-wallet-webextension/src/components/PendingTransactions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src/components') diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx index 0f1806fbf..2fc2d2d38 100644 --- a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx +++ b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx @@ -6,7 +6,7 @@ import { } from "@gnu-taler/taler-util"; import { Fragment, h, JSX, VNode } from "preact"; import { useEffect } from "preact/hooks"; -import { useAsyncAsHook, useAsyncAsHook2 } from "../hooks/useAsyncAsHook.js"; +import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import { Avatar } from "../mui/Avatar.js"; import { Typography } from "../mui/Typography.js"; import * as wxApi from "../wxApi.js"; @@ -18,7 +18,7 @@ interface Props extends JSX.HTMLAttributes { } export function PendingTransactions({ goToTransaction }: Props): VNode { - const state = useAsyncAsHook2(wxApi.getTransactions); + const state = useAsyncAsHook(wxApi.getTransactions); useEffect(() => { wxApi.onUpdateNotification([NotificationType.WithdrawGroupFinished], () => { -- cgit v1.2.3