summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts')
-rw-r--r--packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts15
1 files changed, 6 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts
index 8bae9470f..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";
@@ -64,7 +64,8 @@ export function useComponentState({
return {
status: "error",
error: alertFromError(
- i18n.str`Could not load the status of the term of service`,
+ i18n,
+ i18n.str`Could not load the transfer payment status`,
hook,
),
};
@@ -76,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);
@@ -155,7 +152,7 @@ export function useComponentState({
const resp = await api.wallet.call(
WalletApiOperation.ConfirmPeerPullDebit,
{
- peerPullDebitId,
+ transactionId,
},
);
onSuccess(resp.transactionId);