fix: Cannot read properties of undefined (reading 'ev_sig')

This commit is contained in:
Sebastian 2023-02-10 12:52:05 -03:00
parent 07398ee499
commit 3ade15e5e5
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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,