Skip to content

Commit

Permalink
fix product passport recognition for ipfs context
Browse files Browse the repository at this point in the history
Signed-off-by: F-Node-Karlsruhe <[email protected]>
  • Loading branch information
F-Node-Karlsruhe committed Jun 2, 2023
1 parent 910a6ab commit 137cf80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ WIP

- update dpp recognition


1.4.2 (2023-03-30)
---

- fix error message


1.4.1 (2023-03-21)
---

- add EECC IPFS gateways as default
- fix IPFS promises
- UI improvements


1.4.0 (2023-03-15)
---

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Passport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
isProductPassport() {
if (this.credentials.length < 1) return false;
return this.credentials.filter(function (credential) {
return credential['@context'].some(c => typeof c == 'string' && c.startsWith('https://ssi.eecc.de/api/registry/context') && c.includes('/productpassport'))
return credential.type.some(t => t == 'ProductPassportCredential')
}).length > 0;
}
}
Expand Down

0 comments on commit 137cf80

Please sign in to comment.