aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-02-10 12:52:05 -0300
committerSebastian <sebasjm@gmail.com>2023-02-10 12:52:05 -0300
commit3ade15e5e583a8482aed7579b86f340c283efb1c (patch)
treee395ec0f70b3498d74c944a0b52d854bdf7b3003
parent07398ee499f874a8cfc2c40c006eecc5ee7cc6b0 (diff)
downloadwallet-core-3ade15e5e583a8482aed7579b86f340c283efb1c.tar.xz
fix: Cannot read properties of undefined (reading 'ev_sig')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts4
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 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<void>[] = [];
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,