From 2cc3fa4dca60c486fe70fb04bc5b7e7b28566f99 Mon Sep 17 00:00:00 2001 From: F-Node-Karlsruhe Date: Tue, 7 Feb 2023 15:38:06 +0100 Subject: [PATCH] allow display nested object properties --- frontend/src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils.js b/frontend/src/utils.js index 182fe1b..ce9b97c 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -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;