summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/transactions.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-20 14:34:56 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-20 14:34:56 +0530
commita8fb16021d6f71e6d0c7fae6b440e5c3197b8867 (patch)
treeff893a899e34d7f94dad420b0a6907e95f2942cb /packages/taler-wallet-core/src/operations/transactions.ts
parent786976e5a8e10f6a3eab50cacbefe98d8b2364f5 (diff)
downloadwallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.gz
wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.bz2
wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.zip
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.ts4
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 = {