From ab428f3b1ebb4f147075d6628df0d08df3ba1fe2 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 16 Apr 2024 15:22:04 -0300 Subject: fix typo: validating the wrong state --- packages/taler-wallet-core/src/pay-merchant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/pay-merchant.ts') diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts index e08f23beb..36cf5180b 100644 --- a/packages/taler-wallet-core/src/pay-merchant.ts +++ b/packages/taler-wallet-core/src/pay-merchant.ts @@ -2790,7 +2790,7 @@ async function processPurchaseAutoRefund( logger.warn("purchase does not exist anymore"); return; } - if (p.purchaseStatus !== PurchaseStatus.PendingQueryingRefund) { + if (p.purchaseStatus !== PurchaseStatus.PendingQueryingAutoRefund) { return; } const oldTxState = computePayMerchantTransactionState(p); -- cgit v1.2.3