wallet-core: allow deleting a peer-push-credit transaction in dialog state

This commit is contained in:
Florian Dold 2023-06-24 17:54:15 +02:00
parent 1f31ebc3cc
commit fbab16ef23
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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: