From b4ab2fcdf3e1bbc0ca9096661a1812481dca58b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 8 Mar 2024 01:06:13 +0100 Subject: wallet-core: remove deprecated peer...PaymentId --- .../taler-wallet-webextension/src/cta/InvoicePay/state.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'packages/taler-wallet-webextension/src/cta/InvoicePay') diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts index ff9c7e5c7..99de03d2d 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts @@ -23,10 +23,10 @@ import { TalerProtocolTimestamp, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useEffect } from "preact/hooks"; import { alertFromError, useAlertContext } from "../../context/alert.js"; import { useBackendContext } from "../../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js"; import { Props, State } from "./index.js"; @@ -77,12 +77,8 @@ export function useComponentState({ // }; // } - const { - contractTerms, - peerPullDebitId, - amountEffective, - amountRaw, - } = hook.response.p2p; + const { contractTerms, transactionId, amountEffective, amountRaw } = + hook.response.p2p; const amountStr: string = contractTerms.amount; const amount = Amounts.parseOrThrow(amountStr); @@ -156,7 +152,7 @@ export function useComponentState({ const resp = await api.wallet.call( WalletApiOperation.ConfirmPeerPullDebit, { - peerPullDebitId, + transactionId, }, ); onSuccess(resp.transactionId); -- cgit v1.2.3