Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
chore: handle missing credential issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Oct 27, 2023
1 parent e8de105 commit 2655122
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions web/src/pages/credentials/[credentialId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
)
}}
</h2>
<div class="flex items-center">
<div v-if="jwtJson.vc.issuer" class="flex items-center">
<img :src="jwtJson.vc.issuer?.image?.id ? jwtJson.vc.issuer?.image?.id : jwtJson.vc.issuer?.image"
class="w-12"
/>
<div class="text-natural-600 ml-2 w-32">
{{ jwtJson.vc.issuer.name }}
{{ jwtJson.vc.issuer?.name }}
</div>
</div>
</div>
Expand Down Expand Up @@ -249,15 +249,17 @@
</div>

<hr class="my-5"/>
<div class="text-gray-500 mb-4 font-bold">Issuer</div>
<div class="md:flex text-gray-500 mb-3 md:mb-1">
<div class="min-w-[19vw]">Name</div>
<div class="font-bold">{{ jwtJson.vc.issuer.name }}</div>
</div>
<div class="md:flex text-gray-500 mb-3 md:mb-1">
<div class="min-w-[19vw]">DID</div>
<div class="font-bold overflow-scroll lg:overflow-auto">
{{ jwtJson.vc.issuer.id }}
<div v-if="jwtJson.vc.issuer">
<div class="text-gray-500 mb-4 font-bold">Issuer</div>
<div class="md:flex text-gray-500 mb-3 md:mb-1">
<div class="min-w-[19vw]">Name</div>
<div class="font-bold">{{ jwtJson.vc.issuer?.name }}</div>
</div>
<div class="md:flex text-gray-500 mb-3 md:mb-1">
<div class="min-w-[19vw]">DID</div>
<div class="font-bold overflow-scroll lg:overflow-auto">
{{ jwtJson.vc.issuer?.id }}
</div>
</div>
</div>
<hr class="mt-5 mb-3"/>
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
)
}}
</h2>
<div class="flex items-center">
<div v-if="credential.issuer" class="flex items-center">
<img class="w-12" :src="credential.issuer?.image?.id
? credential.issuer?.image?.id
: credential.issuer?.image
" />
<div class="text-natural-600 ml-2 w-32">
{{ credential.issuer.name }}
{{ credential.issuer?.name }}
</div>
</div>
</div>
Expand Down

0 comments on commit 2655122

Please sign in to comment.