diff options
author | Florian Dold <florian@dold.me> | 2022-09-30 13:22:00 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-30 13:22:00 +0200 |
commit | 3bf4ce7f13383b45128fa661050198efdf4d41f7 (patch) | |
tree | 48cce25aea5ff27812b9e8d1a1dc38167ad6caa3 /packages/taler-wallet-core/src | |
parent | 0a3f9979b201f4fc0c17bfeef370048f37f25611 (diff) | |
download | wallet-core-3bf4ce7f13383b45128fa661050198efdf4d41f7.tar.xz |
wallet-core: return correct status from processReserveBankStatus
Diffstat (limited to 'packages/taler-wallet-core/src')
-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( |