Skip to content

Commit

Permalink
allow display nested object properties
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Feb 7, 2023
1 parent f6888be commit 2cc3fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export function isURL(url) {
}

export function getCredentialValue(value) {
return typeof value === 'object' ? value.value || value['@value'] : value;
return typeof value === 'object' ? value.value || value['@value'] || JSON.stringify(value, null, 2) : value;
}

export function getPlainCredential(credential) {
var clean_credential = {...credential};
var clean_credential = { ...credential };
delete clean_credential.verified;
delete clean_credential.revoked;
delete clean_credential.status;
Expand Down

0 comments on commit 2cc3fa4

Please sign in to comment.