diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index 4b860559e..e8fb99ab7 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -18,7 +18,7 @@ import { AbsoluteTime, Amounts, TalerErrorDetail, - TalerProtocolTimestamp + TalerProtocolTimestamp, } from "@gnu-taler/taler-util"; import { TalerError, WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useState } from "preact/hooks"; @@ -52,10 +52,7 @@ export function useComponentState( }; } - const { - contractTerms, - peerPushPaymentIncomingId, - } = hook.response; + const { contractTerms, peerPushPaymentIncomingId } = hook.response; const amount: string = contractTerms?.amount; const summary: string | undefined = contractTerms?.summary; @@ -64,9 +61,12 @@ export function useComponentState( async function accept(): Promise<void> { try { - const resp = await api.wallet.call(WalletApiOperation.AcceptPeerPushPayment, { - peerPushPaymentIncomingId, - }); + const resp = await api.wallet.call( + WalletApiOperation.AcceptPeerPushPayment, + { + peerPushPaymentIncomingId, + }, + ); onSuccess(resp.transactionId); } catch (e) { if (e instanceof TalerError) { |