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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index d4c863608..c6cc13b6c 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -27,7 +27,7 @@ import * as wxApi from "../../wxApi.js"; import { Props, State } from "./index.js"; export function useComponentState( - { talerPayPushUri, onClose }: Props, + { talerPayPushUri, onClose, onSuccess }: Props, api: typeof wxApi, ): State { const hook = useAsyncAsHook(async () => { @@ -68,7 +68,7 @@ export function useComponentState( const resp = await api.acceptPeerPushPayment({ peerPushPaymentIncomingId, }); - await onClose(); + onSuccess(resp.transactionId) } catch (e) { if (e instanceof TalerError) { setOperationError(e.errorDetail); |
