From a8fb16021d6f71e6d0c7fae6b440e5c3197b8867 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Aug 2020 14:34:56 +0530 Subject: handle withdrawals aborted by the bank, add test --- packages/taler-wallet-core/src/operations/transactions.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/transactions.ts') diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 8d0558dbd..b79ac3b27 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -23,6 +23,7 @@ import { WithdrawalSourceType, WalletRefundItem, RefundState, + ReserveRecordStatus, } from "../types/dbTypes"; import { Amounts, AmountJson } from "../util/amounts"; import { timestampCmp, Timestamp } from "../util/time"; @@ -186,6 +187,9 @@ export async function getTransactions( if (r.initialWithdrawalStarted) { return; } + if (r.reserveStatus === ReserveRecordStatus.BANK_ABORTED) { + return; + } let withdrawalDetails: WithdrawalDetails; if (r.bankInfo) { withdrawalDetails = { -- cgit v1.2.3