From 3bf4ce7f13383b45128fa661050198efdf4d41f7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 30 Sep 2022 13:22:00 +0200 Subject: wallet-core: return correct status from processReserveBankStatus --- packages/taler-wallet-core/src/operations/withdraw.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core/src/operations') 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( -- cgit v1.2.3