diff options
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 12 |
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( |