From fbab16ef23fb216c8322cdb1fa7e92173fa73133 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 24 Jun 2023 17:54:15 +0200 Subject: [PATCH] wallet-core: allow deleting a peer-push-credit transaction in dialog state --- .../taler-wallet-core/src/operations/pay-peer-push-credit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts index 341dccb7a..b2f641b80 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts @@ -928,7 +928,7 @@ export function computePeerPushCreditTransactionActions( ): TransactionAction[] { switch (pushCreditRecord.status) { case PeerPushPaymentIncomingStatus.DialogProposed: - return []; + return [TransactionAction.Delete]; case PeerPushPaymentIncomingStatus.PendingMerge: return [TransactionAction.Abort, TransactionAction.Suspend]; case PeerPushPaymentIncomingStatus.Done: