Skip to content

Commit

Permalink
Merge pull request #254 from tw-mosip/injiver-833-demo-changes
Browse files Browse the repository at this point in the history
[INJIVER-833] - PD change
  • Loading branch information
sree96 authored Dec 3, 2024
2 parents 650da41 + 01d88f3 commit e23ad9c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function VcDisplayCard(props: displayProps) {
Object.keys(props.vc.credentialSubject)
.filter(
(key) =>
key?.toLowerCase() !== "id" && key?.toLowerCase() !== "type"
key?.toLowerCase() !== "id" && key?.toLowerCase() !== "type" && key?.toLowerCase() != "face"
)
.map((key, index) => (
<div
Expand Down
2 changes: 1 addition & 1 deletion ui/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const verifiableClaims: any[] = [
input_descriptors: [
{
id: "id card credential",
format: {ldp_vc: {proof_type: ["Ed25519Signature2020"]}},
format: {ldp_vc: {proof_type: ["RsaSignature2018"]}},
constraints: {},
},
],
Expand Down
12 changes: 10 additions & 2 deletions ui/src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@ export const convertToTitleCase = (text: string): string => {

export const getDisplayValue = (data: any): string => {
if (data instanceof Array && data?.length > 0) {
console.log(data.length)

let displayValue = "";
data.forEach(value => {
displayValue += `${value}, `;
console.log(value)
if (value.value){
displayValue += `${value.value}`;
}
else {
displayValue += `${value}, `;
}
});
return displayValue.slice(0, displayValue.length - 2);
return displayValue;
}
return data?.toString();
}
Expand Down

0 comments on commit e23ad9c

Please sign in to comment.