Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case constants.ATTR_PHONE_NUMBER:
attributes.push(createAttributeItem(attribute, 'Mobile number', 'yoti-icon-phone'));
break;
case constants.ATTR_EMAIL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Email address', 'yoti-icon-email'));
break;
case constants.ATTR_POSTAL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Address', 'yoti-icon-address'));
break;
case constants.ATTR_DOCUMENT_DETAILS:
attributes.push(createAttributeItem(attribute, 'Document Details', 'yoti-icon-profile'));
break;
case constants.ATTR_STRUCTURED_POSTAL_ADDRESS:
attributes.push(createAttributeItem(attribute, 'Structured Address', 'yoti-icon-address'));
break;
case constants.ATTR_DOCUMENT_IMAGES:
attributes.push(createAttributeItem(attribute, 'Document Images', 'yoti-icon-profile'));
break;
default:
attributes.push(createAttributeItem(attribute, attribute.getName().replace('_', ' '), 'yoti-icon-profile'));
}
});