diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-10 19:03:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-10 19:03:20 -0300 |
commit | ed05a19bb477f331f3b0933cd1daf7b3eed4bce2 (patch) | |
tree | fcfd11554c48bf23024da18b258a09daa559331d /packages/taler-wallet-core/src/operations/pay-merchant.ts | |
parent | 22c5b472b839f48a045270961c748b8bcef3355f (diff) | |
download | wallet-core-ed05a19bb477f331f3b0933cd1daf7b3eed4bce2.tar.xz |
fix: remove refundAmountAwaiting when refund is accepted
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index fcaabed56..88730bf3b 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -2367,6 +2367,7 @@ async function processPurchaseAutoRefund( } const oldTxState = computePayMerchantTransactionState(p); p.purchaseStatus = PurchaseStatus.Done; + p.refundAmountAwaiting = undefined; const newTxState = computePayMerchantTransactionState(p); await tx.purchases.put(p); return { oldTxState, newTxState }; |