From 7436d8d8612006b5f7917c63ee6bfe18b06281c9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Nov 2023 15:02:29 -0300 Subject: prevent parsing for success when kyc trigger --- packages/taler-wallet-core/src/operations/withdraw.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/taler-wallet-core') 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, -- cgit v1.2.3