diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-06 15:02:29 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-06 15:02:29 -0300 |
commit | 7436d8d8612006b5f7917c63ee6bfe18b06281c9 (patch) | |
tree | e739135b84e958a4adb4832ff655b65f1fcbd70f /packages/taler-wallet-core | |
parent | 656fcae88c183ebb2c0d61c94ea763b110cae918 (diff) | |
download | wallet-core-7436d8d8612006b5f7917c63ee6bfe18b06281c9.tar.xz |
prevent parsing for success when kyc trigger
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 3600fcf22..5b8d101b1 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -936,6 +936,10 @@ async function processPlanchetExchangeBatchRequest( const resp = await ws.http.postJson(reqUrl, batchReq); if (resp.status === HttpStatusCode.UnavailableForLegalReasons) { await handleKycRequired(ws, withdrawalGroup, resp, 0, requestCoinIdxs); + return { + batchResp: { ev_sigs: [] }, + coinIdxs: [], + }; } const r = await readSuccessResponseJsonOrThrow( resp, |