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

Commit

Permalink
fix: redirect on policy verification failed
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkar-jain committed Nov 1, 2023
1 parent 348dd56 commit 8394960
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/src/pages/exchange/presentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ async function acceptPresentation() {
console.log("Policy verification failed: ", e)
let sessionId = presentationUrl.searchParams.get('state');
let response = await fetch(`https://verifier.portal.walt.id/vp/session/${sessionId}`);
response = await response.json();
if (response.verificationResult) {
window.location.href = `https://portal.walt.id/success/${sessionId}`;
}
window.location.href = `https://portal.walt.id/success/${sessionId}`;
// failed.value = true
// window.alert(e)
Expand Down

0 comments on commit 8394960

Please sign in to comment.