aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-12-10 19:03:20 -0300
committerSebastian <sebasjm@gmail.com>2023-12-10 19:03:20 -0300
commited05a19bb477f331f3b0933cd1daf7b3eed4bce2 (patch)
treefcfd11554c48bf23024da18b258a09daa559331d /packages/taler-wallet-core
parent22c5b472b839f48a045270961c748b8bcef3355f (diff)
downloadwallet-core-ed05a19bb477f331f3b0933cd1daf7b3eed4bce2.tar.xz
fix: remove refundAmountAwaiting when refund is accepted
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/operations/pay-merchant.ts1
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 };