diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
commit | a8fb16021d6f71e6d0c7fae6b440e5c3197b8867 (patch) | |
tree | ff893a899e34d7f94dad420b0a6907e95f2942cb /packages/taler-wallet-core/src/operations/transactions.ts | |
parent | 786976e5a8e10f6a3eab50cacbefe98d8b2364f5 (diff) | |
download | wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.xz |
handle withdrawals aborted by the bank, add test
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |