aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-30 13:22:00 +0200
committerFlorian Dold <florian@dold.me>2022-09-30 13:22:00 +0200
commit3bf4ce7f13383b45128fa661050198efdf4d41f7 (patch)
tree48cce25aea5ff27812b9e8d1a1dc38167ad6caa3
parent0a3f9979b201f4fc0c17bfeef370048f37f25611 (diff)
wallet-core: return correct status from processReserveBankStatus
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 461b96079..e7760174e 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1731,9 +1731,15 @@ async function processReserveBankStatus(
await tx.withdrawalGroups.put(r);
});
- return {
- status: BankStatusResultCode.Done,
- };
+ if (status.transfer_done) {
+ return {
+ status: BankStatusResultCode.Done,
+ };
+ } else {
+ return {
+ status: BankStatusResultCode.Waiting,
+ };
+ }
}
export async function internalCreateWithdrawalGroup(