From 2655122ae8fccc5fa8ca1dbbe126d7da8d162b51 Mon Sep 17 00:00:00 2001 From: mikeplotean Date: Fri, 27 Oct 2023 18:19:39 +0300 Subject: [PATCH] chore: handle missing credential issuer --- web/src/pages/credentials/[credentialId].vue | 24 +++++++++++--------- web/src/pages/index.vue | 4 ++-- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/web/src/pages/credentials/[credentialId].vue b/web/src/pages/credentials/[credentialId].vue index 91db944..afccbd6 100644 --- a/web/src/pages/credentials/[credentialId].vue +++ b/web/src/pages/credentials/[credentialId].vue @@ -32,12 +32,12 @@ ) }} -
+
- {{ jwtJson.vc.issuer.name }} + {{ jwtJson.vc.issuer?.name }}
@@ -249,15 +249,17 @@
-
Issuer
-
-
Name
-
{{ jwtJson.vc.issuer.name }}
-
-
-
DID
-
- {{ jwtJson.vc.issuer.id }} +
+
Issuer
+
+
Name
+
{{ jwtJson.vc.issuer?.name }}
+
+
+
DID
+
+ {{ jwtJson.vc.issuer?.id }} +

diff --git a/web/src/pages/index.vue b/web/src/pages/index.vue index 2de0edd..eb2cd14 100644 --- a/web/src/pages/index.vue +++ b/web/src/pages/index.vue @@ -57,13 +57,13 @@ ) }} -
+
- {{ credential.issuer.name }} + {{ credential.issuer?.name }}