From 3ade15e5e583a8482aed7579b86f340c283efb1c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 10 Feb 2023 12:52:05 -0300 Subject: fix: Cannot read properties of undefined (reading 'ev_sig') --- packages/taler-wallet-core/src/operations/withdraw.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 987a5e062..5b8944aaf 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1181,6 +1181,10 @@ export async function processWithdrawalGroup( let work: Promise[] = []; work = []; for (let j = 0; j < resp.coinIdxs.length; j++) { + if (!resp.batchResp.ev_sigs[j]) { + //response may not be available when there is kyc needed + continue + } work.push( processPlanchetVerifyAndStoreCoin( ws, -- cgit v1.2.3