aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-26 10:43:49 +0200
committerFlorian Dold <florian@dold.me>2023-05-26 10:43:49 +0200
commit5df212c66df5b859dc18e80d7d759f43ce5ef6b5 (patch)
tree4b1b50572b92b027f57f04fc9f8e437e644480e2 /packages/taler-wallet-core/src/operations/withdraw.ts
parent5b665c7d809def0c6e2d7487b43194d3042c9fe9 (diff)
downloadwallet-core-5df212c66df5b859dc18e80d7d759f43ce5ef6b5.tar.xz
wallet-core: dispatch cancelAborting for withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index d59d9fea3..c0566bf4d 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -339,8 +339,6 @@ export async function abortWithdrawalTransaction(
notifyTransition(ws, transactionId, transitionInfo);
}
-// Called "cancel" in the spec right now,
-// from suspended-aborting.
export async function cancelAbortingWithdrawalTransaction(
ws: InternalWalletState,
withdrawalGroupId: string,
@@ -364,6 +362,7 @@ export async function cancelAbortingWithdrawalTransaction(
}
let newStatus: WithdrawalGroupStatus | undefined = undefined;
switch (wg.status) {
+ case WithdrawalGroupStatus.SuspendedAbortingBank:
case WithdrawalGroupStatus.AbortingBank:
newStatus = WithdrawalGroupStatus.FailedAbortingBank;
break;