diff --git a/packages/wasm/src/services/credential/service.js b/packages/wasm/src/services/credential/service.js index 6b218442..c3f0e614 100644 --- a/packages/wasm/src/services/credential/service.js +++ b/packages/wasm/src/services/credential/service.js @@ -13,12 +13,10 @@ const pex: PEX = new PEX(); export function isBBSPlusCredential(credential) { return ( - (typeof credential?.proof?.type === 'string' && - credential.proof.type.includes('BBS+SignatureDock')) || - (Array.isArray(credential['@context']) && - credential['@context'].find( - context => context.bs && context.bs.indexOf('bbs') > -1, - )) + Array.isArray(credential['@context']) && + credential['@context'].find( + context => context.bs && context.bs.indexOf('bbs') > -1, + ) ); }