Skip to content

Commit

Permalink
refactor: display success alert when verified successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
ldhyen99 committed Jun 13, 2024
1 parent 12648f7 commit f7f2495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/demo-explorer/src/pages/CredentialVerifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ const CredentialVerifier = () => {
credential: JSON.parse(text),
fetchRemoteContexts: true,
})

if (result?.verified) {
setVerificationResult((result) => {
if (!result) return result
return { ...result, verifiableCredential: JSON.parse(text) }
setVerificationResult({
...result,
verifiableCredential: JSON.parse(text),
})
} else {
setVerificationResult({
Expand Down

0 comments on commit f7f2495

Please sign in to comment.