diff --git a/app/components/OpenId/OpenIDProofPresentation.tsx b/app/components/OpenId/OpenIDProofPresentation.tsx index 47ba4377..7baa0f0d 100644 --- a/app/components/OpenId/OpenIDProofPresentation.tsx +++ b/app/components/OpenId/OpenIDProofPresentation.tsx @@ -187,9 +187,9 @@ const OpenIDProofPresentation: React.FC = ({ {credential.description && {credential.description}} - {selectedCredential.requestedAttributes.map(a => ( - - • {sanitizeString(a)} + {selectedCredential.requestedAttributes.map(attribute => ( + + • {sanitizeString(attribute)} ))} diff --git a/app/screens/OpenID4VCProofChangeCredential.tsx b/app/screens/OpenID4VCProofChangeCredential.tsx index c0b3909f..f378cb9f 100644 --- a/app/screens/OpenID4VCProofChangeCredential.tsx +++ b/app/screens/OpenID4VCProofChangeCredential.tsx @@ -57,12 +57,13 @@ const OpenID4VCProofChangeCredential: React.FC = ({ route, nav const renderCredential = ({ item }: { item: any }) => { const displayItems = [ { label: 'Issuer', value: item?.issuerName }, - ...Object.entries(item?.disclosedPayload || {}).map(([key, value]) => ({ - label: key.charAt(0).toUpperCase() + key.slice(1), // Capitalize key - value: value?.toString() ?? '', - })), + ...Object.entries(item?.disclosedPayload || {}) + .filter(([key]) => key.toLowerCase() !== 'id') // Exclude the "Id" field + .map(([key, value]) => ({ + label: key.charAt(0).toUpperCase() + key.slice(1), // Capitalize the key + value: value?.toString() ?? '', + })), ] - return (