diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-25 12:18:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-25 12:18:52 -0300 |
commit | dcddc4c53a59b087c5e48b6b20ed740514257bc8 (patch) | |
tree | d55b445119efd82c516746ef929ae5e32e9455e7 /packages/taler-wallet-core/src/operations/pay-merchant.ts | |
parent | c121eb875eb05b5fb49bd5583b6fcd4da8180879 (diff) | |
download | wallet-core-dcddc4c53a59b087c5e48b6b20ed740514257bc8.tar.xz |
revert the Lost payment result
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index d3d0a12bd..ed7f17a18 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1291,10 +1291,7 @@ export async function checkPaymentByProposalId( return tx.purchases.get(proposalId); }); if (!proposal) { - // throw Error(`could not get proposal ${proposalId}`); - return { - status: PreparePayResultType.Lost, - }; + throw Error(`could not get proposal ${proposalId}`); } if (proposal.purchaseStatus === PurchaseStatus.RepurchaseDetected) { const existingProposalId = proposal.repurchaseProposalId; |