Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Dec 4, 2023
1 parent 90e5580 commit 2aa1d80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demos/test-app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,16 @@ function handleFlowReady(evnt: MessageEvent) {
}

function handleFlowFinished(evnt: MessageEvent) {
if (latestOpts === undefined) {
// no onlight requests, so we don't expect a response.
return;
}

if (evnt.data?.id !== latestOpts.flowId) {
// If this is not a response to a flow we started, ignore it
return;
}

try {
// Make the presentation presentable
const verifiablePresentation = evnt.data?.result?.verifiablePresentation;
Expand Down

0 comments on commit 2aa1d80

Please sign in to comment.