public/verifier/qr.js
//   Note: if one of the fields cannot be parsed, 'undefined' is returned
if one of the fields cannot be parsed, 'undefined' is returned
if one of the fields cannot be parsed ' undefined ' is returned
function collectParts(section) {
        const parts = [];
        for (let i = 0; i < section.fields.length; i++) {
            const part = parseShc(section.fields[i].value);
            if (!part || part.parts === undefined) return undefined;
            parts.push(part);
        }
        return parts;
    }
function collectParts ( section ) { const parts = [ ] ; for ( let i = 0 ; i < section . fields . length ; i ++ ) { const part = parseShc ( section . fields [ i ] . value ) ; if ( ! part || part . parts === undefined ) return undefined ; parts . push ( part ) ; } return parts ; }
Note: if one of the fields cannot be parsed, 'undefined' is returned
Note : if one of the fields cannot be parsed ' undefined ' is returned